Set Windows to Power Down on Your Schedule
Windows includes several reliable ways to schedule an automatic shutdown, whether you need a one-time power-off after a download, a recurring shutdown at the end of a workday, or a timed reminder to stop using a shared computer. This guide explains the Shutdown command, including delay and cancellation options, then shows how to create a repeatable task in Task Scheduler. It also compares the available methods, covers common permission and interruption issues, and provides practical safety checks to prevent lost work before Windows turns off.
Scheduling an automatic shutdown is useful when a Windows PC must turn off after a long task, at the end of a shared workstation shift, or as part of a regular power-saving routine. Windows provides built-in tools for both one-time and recurring shutdowns, so you do not need to install a third-party utility. The most suitable option depends on whether you want a simple countdown or a schedule that repeats on selected days.
Choose the right shutdown method
For a one-time shutdown after a specific number of seconds, the built-in shutdown command is the fastest choice. For a recurring event, such as turning off a desktop every weekday at 7:00 PM, Task Scheduler gives you far more control. Both methods use standard Windows components and can be reversed or adjusted.
| Method | Best for | Setup effort | How to stop it |
|---|---|---|---|
| Shutdown command with timer | A single delayed shutdown | Very low | Run shutdown /a |
| Task Scheduler | Daily, weekly, or event-based shutdowns | Moderate | Disable or delete the task |
| Desktop shortcut | Frequently used custom countdowns | Low | Use a separate abort shortcut |
Schedule a one-time shutdown with Command Prompt
The command-line tool works in Windows 10 and Windows 11. Press Windows + R, type cmd, and select OK. You can also open Windows Terminal and use a Command Prompt or PowerShell tab.
Use a countdown timer
Enter the following command, replacing the number with the delay you need in seconds:
shutdown /s /t 3600
This example shuts down the PC in 3,600 seconds, or one hour. Windows normally displays a notification that a shutdown has been scheduled. The /s switch means shut down, while /t sets the countdown.
Common timer values include:
shutdown /s /t 900for 15 minutes.shutdown /s /t 1800for 30 minutes.shutdown /s /t 7200for two hours.shutdown /s /t 0for an immediate shutdown.
You can add a reason that appears in the warning message by using the /c option. For example:
shutdown /s /t 1800 /c "PC will shut down after the backup window"
A scheduled shutdown is not a substitute for saving work. Windows may close applications during shutdown, but an unsaved document, an incomplete upload, or a process that needs confirmation can still lead to lost work or an interrupted task.
Cancel a pending shutdown
If you change your mind before the timer expires, open Command Prompt or Windows Terminal and run:
shutdown /a
The /a switch aborts a shutdown that is currently waiting. It only works while the countdown is active, so it cannot reverse a computer that has already powered off.
Create a recurring shutdown in Task Scheduler
Task Scheduler is the better tool for repeated routines. It can start a shutdown at a specific time, on chosen days, at logon, or after other system events. To find it, open the Start menu, search for Task Scheduler, and open the desktop app.
- Select Action in the top menu, then choose Create Basic Task.
- Give the task a clear name, such as Weekday Evening Shutdown, and select Next.
- Choose a trigger, such as Daily or Weekly, then set the start time and desired days.
- For the action, select Start a program.
- In Program/script, enter
shutdown.exe. - In Add arguments, enter
/s /f /t 60. - Review the summary and select Finish.
In this example, /f forces running applications to close and /t 60 gives a one-minute warning. For an unattended device, that behavior may be appropriate. For a personal computer where documents may still be open, omit /f and use a longer delay, such as /s /t 300, to allow time to save work.
Refine the task settings
After creating the task, find it in the Task Scheduler Library, right-click it, and choose Properties. The Conditions and Settings tabs are especially useful. For example, on a laptop, you may want to clear the option that starts the task only when the computer is on AC power. You can also choose what happens if the scheduled time is missed because the PC was asleep.
Before relying on a recurring task, use the Run option in Task Scheduler to test it. Close or save important files first. If the task does not work, inspect the History tab and confirm that the action points to shutdown.exe with valid arguments.
Make a shutdown shortcut for repeated timers
A shortcut is convenient when you regularly use the same delay but do not need a calendar-based schedule. Right-click an empty area of the desktop, choose New > Shortcut, and enter a command such as:
shutdown.exe /s /t 2700
Name it something unmistakable, such as Shut Down in 45 Minutes. You can pin the shortcut to Start or the taskbar if you use it frequently. Consider creating a second shortcut with this location:
shutdown.exe /a
Name the second shortcut Cancel Scheduled Shutdown. Keeping both shortcuts together makes it less likely that a timer will be left running by mistake.
Prevent avoidable interruptions and data loss
Automatic shutdown should fit the work taking place on the computer. A shutdown timer can interrupt backups, disk encryption operations, media rendering, software updates, and remote sessions. Review active tasks before creating a timer, especially on a work or family computer used by more than one person.
- Save files and close sensitive applications before the scheduled time.
- Use a visible warning period instead of an immediate forced shutdown.
- Avoid
/funless unattended operation is necessary. - Confirm that cloud sync, downloads, and backup jobs have time to finish.
- Tell other users of a shared PC when a recurring task has been enabled.
If you only want to reduce energy use, sleep or hibernation may be a better choice than shutdown. Sleep allows a fast return to work, while hibernation saves the current session to disk and uses very little power. These settings are available through Settings > System > Power & battery in current Windows versions, although the exact options can vary by device.
Troubleshooting scheduled shutdowns
If a command appears to do nothing, check the timer value and make sure it is expressed in seconds. If a Task Scheduler job fails, verify that the account running the task has the required permissions and that the computer is powered on at the scheduled time. A desktop computer that is shut down cannot run a task until it starts again; a sleeping device may need a setting that allows the task to wake it.
For a task that triggers but does not shut down, check whether security software, an organization’s device policy, or an open application is blocking the action. On managed work devices, administrators may limit shutdown behavior or Task Scheduler access. In that case, contact the organization’s IT support team rather than trying to bypass policy controls.











