To access shutdown command, simply go to DOS command prompt by clicking on Start -> All Programs -> Accessories -> Command Prompt or Start -> Run and then type in cmd to launch a command prompt window.
Below are the few example on how to use Shutdown command:-
To reboot the computer:
To restart computer immediately:
shutdown -r /t 0
Note: T0 restart immediately, use the /t 0 option. The /t 0 option ensures that a time-out period of 0 (zero) seconds is used before the command is executed. /t can be set between 0 and 600 seconds (0 and 10 minutes).
To shutdown a computer:
Note: By default there is a 30 second delay with all SHUTDOWN commands, this at least gives you a short window to use the abort command to stop a shutdown if you’ve made a typing mistake.
To abort/cancel shutdown:
To shutdown computer immediately:
To shutdown Remote computer immediately:
shutdown /m \\remotecomputername /s /t 0
To Hibernate computer:
The following command will execute a hibernation directive and will within 30 seconds begin a hibernation and shutdown action:
Just try it, have fun 🙂