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.
Reboot Windows computer from the command line –
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 –
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.
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 –
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
Last Updated on 5 months by Max