INFORMATICS

The Best

How do I shut down or restart my Windows computer via command prompt?

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

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, 10 or 11:
  1. Go to the Start menu
  2. Type cmd in the "Search field" and open them with administrator privileges
  3. Press Enter
From an open Administrator command prompt window:
Type shutdown, followed by the option you wish to execute:
  1. To shut down your computer, type shutdown /s
  2. To restart your computer, type shutdown /r
  3. To log off your computer type shutdown /l

For a complete list of options type shutdown /?

After typing your chosen option, press Enter. The computer will execute your desired task

Search