Saturday, November 8, 2008

Remotely Shutdown / Reboot your Windows Box

A lot of time, I need to restart a windows server. Earlier I used to make a remote desktop connection to the server which easily took over a minute or two as its a server and logged me to a domain. Then I used to restart it from the gui.

Now I found a way to restart it from my local desktop. The command goes like

shutdown -m \\ -r

where -m is used to specify the machine name and -r is meant to specify that the machine needs to be rebooted.

Then I check for the actual reboot by

ping -t

I see that it gets ping messages back, and then stops responding for some 8-10 pings and then gets back up again.

Now this really saves me a lot of time :)