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.
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 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...
- Western Digital WD TV Live HD Media Player - 2010
- Steve Jobs defends conditions at Chinese factory where 10 workers have jumped off the roof - 2010
- Israel FAIL - 2010
- Sega Dreamcast Console for $120 shipped - 2009
- Priceless Linux T-shirt - 2009
- US data center catches fire, 9000 servers down - 2008
- Google Finance Shows Real-Time Stock Data - 2008
- Goosh: The Unofficial Google Shell - 2008
- Captain Obvious: "Men are 10 times more scared of marrying the wrong person than of never getting married at all" - 2008

BeautyandBoost.com
Music














