Shut Down Your Windows PC Remotely From Linux

By The How-To Geek

If you've ever wanted to remotely reboot a Windows box from your Linux machine, the Command-Line Fu web site has you covered with the quick and easy command to use.

In order to actually use this command, you'll need to make sure that you have the samba-common package installed for Ubuntu, or the corresponding package for your Linux distribution. The simple sudo apt-get install samba-common command will do it for any Debian-based Linux.

Now you can reboot a machine remotely with the following syntax, making sure to use a username that has administrative privileges on the Windows box:


If you omit the password section, you'll be prompted on the command line for the password—which might be more secure if you are worried about somebody looking through your terminal history. You can add the -f parameter to force a shutdown, which might be necessary to make sure the remote machine actually shuts down.


  • blog/shutdown_windows_from_a_linux_box.txt
  • Last modified: 2009/06/14 08:49
  • by brb