Wednesday, January 25, 2012

Remotely shutting / restarting Windows

Need to restart/shutdown/sleep a windows machine remotely?

Scenario 1 - Home
My main PC has a comprehensive collection of software and tools installed. To access them from various parts of the house, I frequently remote desktop in using a laptop. At the end of the day, if you wish to restart/shutdown/log off/ or place your PC in sleep mode, the typical menu options from windows "start" button are not available. Although there are various ways to do similar tasks, here is an easy one to remember:
  1. Minimize all applications
  2. Click ALT + F4 (Function Key 4)
  3. Choose your option from the drop down as shown below.
Alt + F4


Scenario 2 - Professional - Domain environment

Above scenario can be applied in work environment as well. I have also used command line "shutdown" with the various switches available. This can be done while remotely logged on the machine or from another healthy machine on the network (with proper logon permissions). Last year I came upon the "i" switch and wondered how I missed it for such a long time. Executing "shutdown -i" in the command prompt provides an interactive GUI interface to performing many of the command line tasks. It also allows one to remotely restart/shutdown multiple machines.

shutdown -i

shutdown options

More information on command line switches:

No comments:

Post a Comment