Command Line Reboot

We can reboot a Windows computer from command line using the in-built shutdown command.  Below you can find syntax of this command for various use cases.

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:
If you have issued a reboot command and have changed your mind, you can stop Windows reboot by running the following command.

shutdown /a

To force applications to close without warning

shutdown /r /f

Open the shutdown GUI

shutdown /i

Add reason for the reboot of the computer

shutdown /r /c "This is the reason for the reboot of the computer"