
Shutdown/Restart Windows via cmd
If you need to restart or shutdown a Windows PC or server using the command line. Go to the command prompt:
Start > Run > cmd
Run either of the the following commands.
Restart
shutdown /r /t 00
Shutdown
shutdown /s /t 00
Windows will instantly begin shutdown or restart the server.