Tuesday, April 7, 2009

How to Remotely Restart a Windows Machine Through Command Line

The DOS command line built into every windows machine can be used to perform a lot of useful tasks. One very helpful task is shutting down your computer. By working your way through a few simple steps, you will find that you are able to easily shut down or restart your computer.

Steps


  1. Make sure you have an administrative rights on the remote machine and you can PING it.
  2. On your workstation - Click on Start > Run, Type shutdown -i
  3. select options to shutdown or restart
  4. Alternatively - Go to command prompt (start > run > cmd) on your workstation... and Type shutdown -r -m \\xxx.xxx.xxx.xxxReplace xxx.xxx.xxx.xxx with the IP address or computer name of the remote machine. -r option is for restart, don't use -r if want to just shut down the system.


Tips


  • Type shutdown -? for more options and control over shutdown command..


Warnings


  • Works only for windows servers and workstations.
  • Shutdown is not an inherent command in Windows Server. You need to install the Windows Server Admin Pack to get this functionality. Out of the box, this will not work.