How to Shut Down Your Windows Computer from the Command Line
Open your PC's Start menu., Type command prompt into the "Search" field., Right-click Command Prompt., Click Run as administrator., Type shutdown -s into Command Prompt., Press ↵ Enter.
Step-by-Step Guide
-
Step 1: Open your PC's Start menu.
You can do this either by clicking the Windows logo in the bottom-right corner of the screen, or by pressing the ⊞ Win key on your keyboard.
The Start menu will open with your mouse cursor in the "Search" field. -
Step 2: Type command prompt into the "Search" field.
Doing so will search your computer for the Command Prompt app, which will pop up at the top of the search menu.
You can also bring up the "Search" bar on Windows 8 by hovering your mouse in the top-right corner of the screen and clicking the magnifying glass when it appears.
If you're using Windows XP, you'll instead click the Run app on the right side of the Start menu. , It resembles a black box.
Doing this will invoke a drop-down menu.
If you're using Windows XP, you'll instead type cmd into the Run window. , It's near the top of the drop-down menu.
Doing so will open Command Prompt with administrator privileges.
You'll need to confirm this choice by clicking Yes when prompted.
If you're using Windows XP, you'll click OK to open Command Prompt.
You won't be able to run Command Prompt in administrator mode if you're on a restricted, public, or networked computer (e.g., a library or school computer). , This command will shut down your computer within a minute of the command being issued.
If you want to shut down your computer immediately, instead type shutdown
-s
-t 00 into Command Prompt.
To shut down your computer a set number of seconds or minutes from the current time, type shutdown
-s
-t ## where "##" is the number of seconds (e.g., "06" for six seconds, "60" for a minute, "120" for two minutes, etc.). , Doing so will run your command and prompt your computer to begin shutting down.
It will typically do so within less than a minute.
If you have several programs open, Windows will first close these programs for you.
Make sure your work is saved before shutting down. -
Step 3: Right-click Command Prompt.
-
Step 4: Click Run as administrator.
-
Step 5: Type shutdown -s into Command Prompt.
-
Step 6: Press ↵ Enter.
Detailed Guide
You can do this either by clicking the Windows logo in the bottom-right corner of the screen, or by pressing the ⊞ Win key on your keyboard.
The Start menu will open with your mouse cursor in the "Search" field.
Doing so will search your computer for the Command Prompt app, which will pop up at the top of the search menu.
You can also bring up the "Search" bar on Windows 8 by hovering your mouse in the top-right corner of the screen and clicking the magnifying glass when it appears.
If you're using Windows XP, you'll instead click the Run app on the right side of the Start menu. , It resembles a black box.
Doing this will invoke a drop-down menu.
If you're using Windows XP, you'll instead type cmd into the Run window. , It's near the top of the drop-down menu.
Doing so will open Command Prompt with administrator privileges.
You'll need to confirm this choice by clicking Yes when prompted.
If you're using Windows XP, you'll click OK to open Command Prompt.
You won't be able to run Command Prompt in administrator mode if you're on a restricted, public, or networked computer (e.g., a library or school computer). , This command will shut down your computer within a minute of the command being issued.
If you want to shut down your computer immediately, instead type shutdown
-s
-t 00 into Command Prompt.
To shut down your computer a set number of seconds or minutes from the current time, type shutdown
-s
-t ## where "##" is the number of seconds (e.g., "06" for six seconds, "60" for a minute, "120" for two minutes, etc.). , Doing so will run your command and prompt your computer to begin shutting down.
It will typically do so within less than a minute.
If you have several programs open, Windows will first close these programs for you.
Make sure your work is saved before shutting down.
About the Author
Jeremy Powell
Jeremy Powell specializes in lifestyle and practical guides and has been creating helpful content for over 4 years. Jeremy is committed to helping readers learn new skills and improve their lives.
Rate This Guide
How helpful was this guide? Click to rate: