This guide shows you how to set a timer that automatically shuts down your Windows 10 PC after a specified period. You’ll learn the built-in command-line method, how to cancel it, and how to create a reusable shortcut. No extra software is needed—everything uses tools already in Windows.
What You’ll Need
- A Windows 10 PC with administrator access (standard user accounts can usually run the shutdown command, but some settings may require admin rights).
- Knowledge of how long (in seconds) you want the delay to be.
Step-by-Step
- Open Command Prompt or Run dialog. Press Win + R to open the Run dialog, or search for “cmd” in the Start menu and open Command Prompt. For most uses, the Run dialog is fastest.
- Decide your delay in seconds. The shutdown command works in seconds. For example, 30 minutes = 1800 seconds, 1 hour = 3600 seconds, 2 hours = 7200 seconds.
- Type the shutdown command. In the Run dialog or Command Prompt, type:
shutdown /s /t seconds
Replace seconds with your chosen number. For a 1-hour delay, type:
shutdown /s /t 3600
- Press Enter. A notification will appear briefly saying “You’re about to be signed out” and that Windows will shut down in the specified time. The timer now runs in the background.
- To cancel the timer: If you change your mind, open Run or Command Prompt again and type:
shutdown /a
Press Enter. You’ll see a notification that the shutdown was aborted. This only works while the timer is still counting down—once the shutdown actually starts, it’s too late.
Creating a Reusable Shortcut (Optional)
- Right-click on your desktop (or any folder) and select New → Shortcut.
- In the location field, paste the command you want, e.g.,
shutdown /s /t 3600. - Click Next, name it something like “Shutdown in 1 Hour”, and click Finish.
- Double-click the shortcut anytime to start that timer. You can create multiple shortcuts for different delays (e.g., 30 min, 1 hr, 2 hr).
Common Mistakes
- Using minutes instead of seconds. The
/tparameter always expects seconds. 60 will shut down in 1 minute, not 1 hour. - Forgetting the slash before ‘s’ and ‘t’. Typing
shutdown s t 3600will give an error. Always include the slashes. - Typing a space between /t and the number. It’s fine to have a space, but ensure there’s no extra character like a comma or period.
- Closing the Command Prompt window. The timer continues even if you close the window, so no need to keep it open.
- Using /r (restart) instead of /s (shutdown). Double-check the flag if you want a full shutdown, not a restart.
Tips
- Use
shutdown /s /t 0to shut down immediately—handy for testing. - Combine with
/fto force close running apps without warning:shutdown /s /f /t 3600. Use with caution as unsaved work will be lost. - For a shutdown at a specific time (e.g., 11 PM), use Task Scheduler instead: create a basic task, set the trigger to “Daily” at your desired time, and set the action to start the program
shutdown.exewith arguments/s /t 0. - If you want to hibernate instead of shutdown, use
shutdown /h(no timer needed—it acts immediately). - To see a countdown on screen, you can use a third-party tool, but the built-in command doesn’t show a visible countdown—only a notification at the start.
Troubleshooting
- Error: “Access is denied (5)” — You need administrator privileges. Right-click Command Prompt and select “Run as administrator”, then try again.
- Error: “The following usage of the path…” — This usually means you mistyped the command. Check for spaces and slashes. Example of correct syntax:
shutdown /s /t 60. - The timer doesn’t seem to start — Make sure you pressed Enter and saw the notification. If you used the Run dialog, the command runs immediately; if you used Command Prompt, you’ll see the prompt return after pressing Enter.
- Can’t cancel the shutdown — The
/acommand only works if the timer is still running. If the shutdown has already begun (screen goes to “Restarting” or “Shutting down”), you can’t cancel it. Also, if you used/f, the system may shut down too quickly to cancel. - The PC restarts instead of shutting down — Check if you accidentally used
/rinstead of/s. Also, some systems are set to restart after an update; that’s a separate Windows Update setting.
Frequently Asked Questions
Can I set a shutdown timer without using Command Prompt?
Yes. You can use the Run dialog (Win+R) and type the same command. Or use Task Scheduler for a specific time. There’s no built-in GUI slider for this in Windows 10.
Will my open files be saved?
No. By default, Windows will try to close apps gracefully, but if an app has unsaved changes, it may prompt you to save. If you use the /f flag, it forces close without saving—so avoid that if you have unsaved work.
Can I set a timer for a restart instead of shutdown?
Yes. Replace /s with /r. For example: shutdown /r /t 1800 restarts in 30 minutes.
How do I set a daily automatic shutdown at a specific time?
Use Task Scheduler: open it, create a basic task, choose “Daily”, set the time, select “Start a program”, and in the program field type shutdown and in arguments type /s /t 0.
Is there a way to see how much time is left?
Not directly. The system only shows a brief notification at the start. You can check the exact time by running shutdown /a—if it says “The shutdown was aborted”, then the timer was still active; if it says “No shutdown in progress”, the timer already finished or never started.
Can I use this on Windows 11?
Yes, the same commands work on Windows 11. The interface is slightly different, but the command prompt and Run dialog behave identically.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix 0x80070005 DISM Error & the 0x800070005 Typo
- Fix Access Denied Adding Shared Printer in Windows 10
- How to Play Minesweeper: Rules, Tips, and Winning Strategy
- Browser SQL Sandbox for Games: Build Guide
- Snapchat Face Swap: Step-by-Step Guide
- Fix a Computer Chair Height Adjuster: Step-by-Step