Microsoft Windows offers several ways to shut down or restart your computer, one of which is via the command prompt.

To access the command prompt window from Windows 8 or 10:
  1. Go to the Start menu
  2. Type cmd in the Search field
  3. Press Enter
From an open command prompt window:
  1. type shutdown, followed by the option you wish to execute. 
  2. To shut down your computer, type shutdown /s
  3. To restart your computer, type shutdown /r
  4. To log off your computer type shutdown /l
  5. For a complete list of options type shutdown /?
  6. After typing your chosen option, press Enter. The computer will execute your desired task

Article number: 
Last updated: 
June 2, 2020