Auto Shutdown Windows 10 PC: Step-by-Step Guide
In this article
This guide shows you how to make your Windows 10 PC shut down automatically at a specific time or after a certain delay. You can use the built-in Task Scheduler for recurring schedules, or the shutdown command for a one-time timer. No extra software is needed—everything is included with Windows.
What You'll Need
- A Windows 10 PC (any edition)
- Administrator account access (for Task Scheduler method)
- Knowledge of the time you want the shutdown to occur
Step-by-Step
Method 1: One-Time Timer Using Command Prompt
- Press Windows Key + R to open the Run dialog.
- Type
cmdand press Ctrl+Shift+Enter to open Command Prompt as administrator (click "Yes" if prompted). - Type the command:
shutdown /s /t 3600and press Enter. Replace3600with the number of seconds you want to wait before shutdown (3600 seconds = 1 hour). - You'll see a notification: "Windows will shut down in 60 minutes." Your PC will turn off after that time.
- To cancel the timer, type
shutdown /ain the same window and press Enter.
Method 2: Schedule a Recurring Shutdown Using Task Scheduler
- Press Windows Key, type
Task Scheduler, and open the app. - In the right-hand pane, click Create Basic Task….
- Give the task a name (e.g., "Auto Shutdown") and click Next.
- Choose the frequency: Daily, Weekly, Monthly, or One time. Click Next.
- Set the start date and time (e.g., 11:00 PM), then click Next.
- Select Start a program and click Next.
- In the "Program/script" field, type
shutdown. In the "Add arguments" field, type/s /f(the/fforces running apps to close, preventing a stuck shutdown). Click Next. - Review the summary and click Finish.
- To test, right-click the task in the list and select Run. Your PC will shut down immediately.
Method 3: Create a Desktop Shortcut for Quick Access
- Right-click on your desktop, go to New > Shortcut.
- In the location field, type:
shutdown /s /t 3600(adjust seconds as needed). Click Next. - Name it (e.g., "Shutdown in 1 hour") and click Finish.
- Double-click the shortcut to start the timer. To cancel, create another shortcut with
shutdown /a.
Common Mistakes
- Forgetting the /s flag – Without it, the command may restart instead of shutting down. Always include
/s. - Using the wrong time unit – The
/tparameter is in seconds, not minutes. 60 minutes = 3600 seconds. - Not running Command Prompt as administrator – Some systems require admin rights for shutdown commands. If you get "Access denied," right-click and run as admin.
- Task Scheduler arguments not separated – Ensure there's a space between
shutdownand/s /f. In the arguments field, type exactly/s /f. - Setting the task for the wrong date – When scheduling, double-check the start date—it may default to today, which could be fine, but if you pick a past date, the task won't run.
Tips
- Use
/fin scheduled tasks to force-close apps that might block shutdown. Without it, the shutdown may be delayed by unsaved work prompts. - To see all scheduled tasks, open Task Scheduler and browse the "Active Tasks" section.
- Combine with
/c "message"to display a custom comment (e.g.,shutdown /s /t 3600 /c "Going to sleep"). - If you want to hibernate instead, replace
/swith/h. - For a shutdown at a specific time (not a delay), use Task Scheduler—it's more reliable than calculating seconds.
Troubleshooting
- Command not recognized – Make sure you typed
shutdowncorrectly. If you're in PowerShell, it also works. - Timer doesn't start – Check that the Command Prompt window is open. Closing it doesn't cancel the timer, but if you used Task Scheduler, ensure the task is enabled (right-click > Enable).
- Shutdown happens immediately – If you see "shutting down" right after running, you likely forgot
/tor set it to 0. Re-run with a positive number. - Task doesn't run – Verify the task's trigger time and date. Also, check that the computer is on at that time (it won't wake from sleep unless you set a wake timer).
- Access denied error – Run Command Prompt as administrator or use Task Scheduler (which runs with admin privileges by default).
- Shutdown cancels itself – Some apps (like media players) can delay shutdown. Use
/fto force it, but be aware unsaved work will be lost.
Frequently Asked Questions
Can I set a shutdown for a specific time, like 11 PM?
Yes, use Task Scheduler and set the trigger to "Daily" at 11:00 PM. The command method only supports a delay, not an absolute time.
How do I cancel a scheduled shutdown?
Open Command Prompt and type shutdown /a. If you used Task Scheduler, delete or disable the task.
Will my unsaved work be lost?
Without the /f flag, Windows will prompt apps to save. With /f, it force-closes everything, so unsaved work may be lost. Use /f only if you're sure nothing important is open.
Can I make my PC shut down automatically every day?
Yes, Task Scheduler with a daily trigger is the best way. Set the frequency to "Daily" and choose the time.
Does this work on Windows 11?
Yes, the same commands and Task Scheduler steps work on Windows 11 as well.
Can I use a script to shut down multiple PCs?
You can use the shutdown /m \\computername option to shut down a remote PC, but you need admin rights on that PC and network permissions.