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.
Argument | Description |
-r | Restarts the PC |
-s | Shuts down the PC |
-t | Specifics 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. |
-o | Is used a shutdown argument boots to the advanced boot options menu |
-fw | Combine with a shutdown option to cause the next boot to go to the firmware user interface. |
-h | Puts 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.