| Wednesday July 23rd 2014

Feedburner

Subscribe by email:

We promise not to spam/sell you.


Search Amazon deals:

Shut Down Your Windows PC Remotely From Linux


If you’ve ever wanted to remotely reboot a Windows box from your Linux machine, we have you covered with the quick and easy command to use.

RPC shutdownIn 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 user name that has administrative privileges on the Windows box:

net rpc shutdown -I IPADDRESS -U USERNAME%PASSWORD

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.

Readers should note that a number of factors may influence whether this technique actually works… if the machine has a desktop firewall installed or the file sharing services are disabled it probably won’t work, but it’s still a very helpful technique that might come in handy.

Related Posts: On this day...

Leave a Reply

You must be logged in to post a comment.