I want a command to shut down a computer on my LAN network that is running Windows 7 and has no password set.
Is there any way to do this?
Another way to do it is writting this command in the Terminal.
net rpc SHUTDOWN -C “some comment here” -f -I x.x.x.x -U user_name%password
(where x.x.x.x is your Windows IP).
On Windows, you can use the FOR command combined with shutdown.
FOR /L %i in (1,1,254) DO shutdown ''192.168.0.%i
Where 192.168.0.%i
is, fill in the IP of the machine you want to shut down. Leaving it in this form will shutdown all computers on the network.
You can download a GUI version here.
You could install UltraVNC (or enable Remote Desktop) on the Windows PC, then login and shut down the PC.
Another way would be to install the telnet server for Windows. This will allow you to telnet into the Windows machine and send a shut down command.
shutdown -i
.