Windows Shutdown and Reboot Using Command Prompt (shutdown command guide)
Hello, this is BlockDMask.
Today, let’s learn how to shutdown or reboot your Windows computer using Command Prompt (cmd) directly.
Normally, you click on the shutdown or restart buttons. But sometimes, command-line control is helpful:
- You want to shutdown or restart after N seconds automatically.
- You are accessing a remote or restricted computer where GUI buttons are not available.
Table of Contents
- 1. How to Open Command Prompt
- 2. Shutdown Command Options Explained
- 3. Practical Shutdown and Reboot Examples
1. How to Open Command Prompt
Option 1: Press Windows Key
→ Search for cmd
and open it.
Option 2: Press Windows + R
→ In the "Run" box, type cmd
and press Enter.
2. Shutdown Command Options Explained
You can type shutdown /?
in cmd to display full documentation of available options.
Basic command format:
shutdown [options]
Common options:
/s
: Shutdown the computer/r
: Restart (shutdown and reboot)/p
: Force shutdown without waiting for applications/t N
: Set countdown timer to N seconds before shutdown (default is 60 seconds)
Example:
shutdown /s /t 10
→ Shutdown in 10 seconds.
3. Practical Shutdown and Reboot Examples
Now let’s combine options for real-world situations:
shutdown /r /p /t 0
→ Restart immediately and force-close all running apps.
shutdown /s /p /t 0
→ Shutdown immediately and force-close apps.
shutdown /s /t 30
→ Shutdown after 30 seconds countdown (no /p → applications may prompt to save data).
shutdown /r
→ Restart after 60 seconds (default delay).
shutdown /s /p
→ Shutdown after 60 seconds and force-close apps.
Using these commands, you can fully control Windows shutdown and reboot processes directly from the console.
Thanks for reading!
Comments
Post a Comment