shutdown command is used to shut down, restart or log off the computer.
Shut down the PC
Restart the PC
Log off the PC
Hibernate the PC
shutdown Command Options
|Display the GUI (must be the first option)
|Shutdown and on the next boot restart any registered applications.
|Restart, after restarting restart any registered applications.
|Abort a system shutdown during the time-out period.
|Turn off the local computer with no time-out or warning
|Document the reason for an unexpected shutdown of a computer.
|Perform a shutdown of the computer and prepare it for fast startup. Windows 8+ Must be used with
/s (shutdown) option.
|Force running applications to close.
soft shutdown/restart/logoff. Windows 10 This will ask programs to close and wait for them to end.
|Combine with a shutdown option to cause the next boot to go to the firmware user interface. Windows 10
|Go to the advanced boot options menu and restart the computer. Must be used with /r option. Windows 8+
|Time until system shutdown in seconds.
|Shutdown message that appears on screen before the shutdown
yes answer to all shutdown queries.