Automatically Restart, Shutdown or Log Off your Windows Computer

Sun, Oct 12, 2008

Windows

Have you ever needed to automate the restart or shutdown process?   Some situations that stick out in my mind are deploying Windows Updates to a system(which almost always require a reboot) and you don’t want to reboot the PC or server during critical business hours.  Well you can setup your system to automatically reboot or shutdown with built-in Windows commands and the built-in task scheduler.

You can also abort a system shutdown, remotely reboot a system on the network or even just have a computer automatically log off.

Here are few of the more important command line commands built into Windows:

  • Shutdown -s (Shuts down your computer)
  • Shutdown -r (Shuts down and restarts your computer)
  • Shutdown -m \\computername (Shutdown a remote computer)
  • Shutdown -a (Abort a system shutdown)
  • Shutdown -l (Log Off)

Just some handy commands if you want to automate the restart or shutdown system via a batch file, which you may then schedule with the built-in Windows task scheduler.

Related posts:

  1. Using your keyboard as a mouse in Windows
  2. A Simple View of Windows Programs Auto Starting
  3. Enable Remote Desktop Remotely
  4. Backup and Monitor the Windows Registry with SpyMe Tools
  5. The Best Freeware Uninstaller is Revo Uninstaller

, , , , ,

This post was written by:

T.J. Mininday - who has written 109 posts on The Windows Fix.

I am a long time techaholic, blogger and IT administrator living in the Midwestern United States. I have been associated with computers and technology almost my entire life. The obsession started when I first set my eyes on one of the Atari Entertainment Systems and hasn't stopped since. My Dad paid $3000+ for a state of the art PC back in the day, and I have been on one almost my entire life since. It's truly an addiction that I will never give up. Along with my Tech addiction, I also enjoy scouring blogs and the web for anything that may be interesting to write about. My posts are displayed here at TheWindowsFix, MakeUseOf and ConnectedInternet.

Contact the author

One Response to “Automatically Restart, Shutdown or Log Off your Windows Computer”

  1. Pavan Kumar Says:

    I use only shutdown -a when something goes wrong and system asks for shutdown….


Leave a Reply