1️⃣ Using Command Prompt (CMD)
- Open Command Prompt (
Win + R
, typecmd
, and pressEnter
). - Type the following command and press Enter: bashCopy
shutdown /s /t 0
/s
→ Shutdown the computer./t 0
→ Shutdown immediately (0 seconds delay).
2️⃣ Using PowerShell
- Open PowerShell (
Win + R
, typepowershell
, and pressEnter
). - Run this command: powershellCopy
Stop-Computer -Force
3️⃣ Using Run Dialog
- Press
Win + R
to open the Run dialog. - Type: bashCopy
shutdown /s /t 0
- Press Enter.
4️⃣ Schedule a Shutdown
To schedule a shutdown after a specific time (e.g., 10 minutes), use:
cmdCopyshutdown /s /t 600
(600 seconds = 10 minutes)
To cancel a scheduled shutdown, type:
cmdCopyshutdown /a