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?

  • You can install VNC or use a Remote Administration Tool (RAT).
    – Anonymous
    Nov 25, 2011 at 18:37
  • 1
    Try shutdown -i.
    – RobinJ
    Dec 9, 2011 at 18:40

4 Answers 4


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).

  • if there is no password what to do?? and what “some comment here” mean ??? Dec 6, 2011 at 20:34
  • "Some Comment Here" is a placeholder for you to actually specify within quotes the reason for the shutdown. In this case, if the reason was for maintenance, you could use "Shutdown for Scheduled Maintenance" or similar. Dec 8, 2011 at 0:33

Enable RDP on Windows then use Remote Desktop Viewer (vinagre) on Ubuntu to connect to your Windows machine.

enter image description here


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.

enter image description 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.