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:



October 14th, 2008 at 1:41 am
I use only shutdown -a when something goes wrong and system asks for shutdown….