I am trying to force a remote shutdown from my laptop to my PC:
machine> shutdown -m \\192.168.2.10 -s -f -t 0 192.168.2.10: Access denied(5)
I am in a WLAN/LAN environment:
192.168.2.100
(DHCP), Win 7 (64 bit)192.168.8.10
(static), Win 7 (32 bit)192.168.2.1
/Subnetmask 255.255.255.0
Access to PC is restricted by username and password.
What do I have to change about the command or about the systems configurations - whilst access restrictions have to remain as is?
From CMD you can type "runas /U:UserNameGoesHere CMD" and enter the password when prompted. Then try the command from the newly presented CMD Box. I am using this solution on a home Workgroup network. Solution works for shutdown.exe and psshutdown.exe It works for Windows 8 and should work for Windows 7.
You can use the NET USE command to authenticate on the remote server and then use shutdown.exe
NET USE \\MyServer\IPC$ mypassword /USER:myuser
http://www.squidworks.net/2011/07/how-to-pass-a-username-and-password-to-windows-shutdown-exe-command/
This does not work with UAC enabled, unless the policy LocalAccountTokenFilterPolicy is enabled on the remote server.
When a user who is a member of the local administrators group on the target remote computer establishes a remote administrative connection by using the net use * \remotecomputer\Share$ command, for example, they will not connect as a full administrator. The user has no elevation potential on the remote computer, and the user cannot perform administrative tasks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With