Last Updated:

How reboot Windows from CMD

Command to reboot windows computer
shutdown /r
The above command will set a time out of 30 seconds to close the applications. After 30 seconds, windows reboot will start.

If you want to reboot Windows with your own time out value you can use the below command.
shutdown /r /t timeout_in_seconds

To shutdown a Windows computer
shutdown /s

To abort computer reboot
shutdown /a

To force reboot by closing applications without warning
shutdown /r /f

Open the shutdown GUI
shutdown /i

Reboot windows using WMIC
wmic os where Primary='TRUE' reboot