Learn how to set up an automatic shutdown timer in Windows 11 using built-in tools like the shutdown command, shortcuts, and Task Scheduler. This guide covers practical steps, troubleshooting tips, and how to cancel scheduled shutdowns for hassle-free PC management.
Windows 11 shutdown timer lets you automatically power off your computer after a set period. This feature is especially handy if you need your PC to continue downloading files, installing updates, or performing tasks without constant supervision.
In Windows 11, you can set up a shutdown timer without any third-party software. The built-in shutdown command allows you to specify when the system should turn off. You can also schedule automatic shutdowns using Task Scheduler.
The simplest way to schedule a computer shutdown in Windows 11 is with the shutdown command. This method lets you choose how many seconds to wait before the system shuts down.
In this command, /s initiates shutdown, and /t sets the delay in seconds. For example, 3600 seconds equals one hour.
After running the command, Windows usually displays a notification about the scheduled shutdown. You can continue using your computer until the timer expires.
To save time converting minutes to seconds, you can use these examples:
| Time Until Shutdown | Command |
|---|---|
| 10 minutes | shutdown /s /t 600 |
| 30 minutes | shutdown /s /t 1800 |
| 1 hour | shutdown /s /t 3600 |
| 2 hours | shutdown /s /t 7200 |
| 3 hours | shutdown /s /t 10800 |
| 5 hours | shutdown /s /t 18000 |
To set a different time, simply change the last number in the command.
Important: Always save your open documents before an automatic shutdown. Some apps may block shutdown if there are unsaved changes.
Windows 11 also offers useful keyboard shortcuts to speed up daily tasks. Discover more in the article Top 10 Essential Windows 11 Keyboard Shortcuts for Productivity.
In Windows 11, you can launch a shutdown timer with either the Command Prompt (CMD) or PowerShell. Both support the shutdown command and let you set the delay.
Your PC will turn off in an hour. The same command works in PowerShell and Windows Terminal.
If you use the shutdown timer often, it's convenient to create a shortcut:
Now, double-clicking the shortcut will activate the timer for one hour. To change the time, edit the shortcut's properties and adjust the "Target" field.
This approach is ideal if you often leave your PC running for downloads or lengthy tasks.
If your computer needs to turn off at the same time every day, it's easier to use Windows 11 Task Scheduler. Unlike a standard timer, this lets you automate recurring shutdowns without re-entering commands.
Windows will now automatically shut down your PC at the scheduled time. The /t 0 argument means shutdown will occur immediately with no additional delay.
Note: Task Scheduler cannot execute shutdown if the computer is fully powered off. If it's asleep, enable "Wake the computer to run this task" in the task's Conditions tab.
You can edit the schedule anytime in the "Task Scheduler Library." Find your task, open its properties, and change the trigger time on the "Triggers" tab.
For more system customization tips, check out 15 Essential Windows 11 Settings for a Faster, Personalized Experience.
If you no longer need the automatic shutdown, you can cancel the timer before the countdown ends. Windows 11 provides a dedicated command for this.
After running the command, Windows will cancel the scheduled shutdown and usually show a notification.
Note: The shutdown /a command only works while the shutdown is pending. If shutdown has already started, it can't be canceled this way.
If you used Task Scheduler for automatic shutdowns, disable the corresponding task:
Disabled tasks can be re-enabled; deleted ones must be recreated from scratch.
If the task already started a shutdown command with a nonzero delay, also run shutdown /a to cancel the active timer.
Sometimes, the shutdown timer runs, but Windows 11 doesn't power off as expected. Possible causes include open apps, sleep mode, or incorrect task settings.
Certain applications may block shutdown if there are unsaved documents or ongoing operations.
To force shutdown, use:
shutdown /s /f /t 3600
The /f switch forcibly closes running applications. Use with caution-unsaved data will be lost.
If Windows enters sleep mode before the timer expires, shutdown may not occur at the scheduled time.
To prevent this:
You don't need to keep the display on-your computer can work with the screen off.
If the automatic shutdown isn't working:
For testing, you can set a short timer with shutdown /s /t 60. If Windows schedules a shutdown, the command works. Cancel the test with shutdown /a.
You can set up a shutdown timer in Windows 11 without extra software. For occasional use, the shutdown /s /t command with your desired seconds is the fastest option.
If you want your PC to shut down daily or on a set schedule, Task Scheduler is best. It automates the process and gives you flexibility to adjust the timing as needed.
To cancel a standard timer, just run shutdown /a. Always save your work before an automatic shutdown to prevent data loss.