Restart / Reboot Windows Computer from Command line [CMD]

By | March 9, 2022

The shutdown command is a built-in command that allows us to reboot Windows computers from the command line. Below are the syntaxes for a variety of uses. Windows 10, 8, 7, and all other server editions are supported by the following commands.

Restart / Reboot Windows Computer from Command line [CMD]

Reboot Windows computer from the command line –

shutdown /r

With the above command, you will specify a timeout of 30 seconds before closing applications. When the 30 seconds are up, the operating system will reboot. The below command can be used to reboot Windows with the time-out value that you specify.

shutdown /r /t timeout_in_seconds

The shutdown of the Windows Computer –

shutdown /s

CMD Restart Command or Reboot –

By running this command, you can stop Windows from rebooting if you had issued a reboot command but changed your mind.

shutdown /a

This will pop up a message saying “The scheduled shutdown has been canceled” on the right bottom portion of the screen.

Force reboot or restart by closing programs without warning –

shutdown /r /f

Run the shutdown GUI –

shutdown /i

Rebooting the computer has a reason –

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

WMIC commands should be used to restart Windows.

Reboot or Restart the Windows using WMIC –

Windows OS can be restarted by using the wmic command below.

All the above commands successfully work for restart from command prompt Windows 10.

You may also like – Javac is not Recognized as Internal Command or External Command

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.