Windows Shutdown Command

Windows comes with a command line utility called Shutdown, which allows you to restart or shutdown your PC.  Below are the arguments that I find useful to use.

ArgumentDescription
-rRestarts the PC
-sShuts down the PC
-tSpecifics how long in seconds the PC will wait before it either restarts or shuts down the PC.  It this argument is nit used then a box will appear say the PC will shutdown less then a minute.
-oIs used a shutdown argument boots to the advanced boot options menu
-fwCombine with a shutdown option to cause the next boot to go to the firmware user interface.
-hPuts your PC in hibernation mode.
 -?Gives you a list of arguments you can use with the shutdown command.

Below is an example of the shutdown command that boots your PC to the advanced boot options menu in 0 seconds.

Shutdown -r -t 0 -o

I hope you find the of the shutdown command very  useful.