How to Shutdown – Restart – Logoff Windows via Command Prompt

  • shutdown -r — restarts
  • shutdown -s — shuts down
  • shutdown -l — logoff
  • shutdown -t xx — where xx is number of seconds to wait till shutdown/restart/logoff
  • shutdown -i — gives you a dialog box to fill in what function you want to use
  • shutdown -a — aborts the previous shutdown command….very handy!

Additional options:

  • -f — force the selected action