Windows Shutdown Command

It's very simple to shutdown windows from the command prompt.

  1. To shutdown windows immediately, type:
    shutdown /s /t 0
  2. If you omit the /t option and type as below, windows will display a countdown of 30 seconds (default) before shutting down.
    shutdown /s
  3. You may also specify a different countdown value, for example: 60 seconds.
    shutdown /s /t 60
  4. For Windows 8 or later, you may choose to perform hybrid shutdown for faster startup on next boot.
    shutdown /s /hybrid /t 0
  5. To restart the computer, use the /r option instead.
    shutdown /r /t 0
  6. For a complete list of shutdown options, type:
    shutdown /?