Home/Lifehacks/How to Set a Shutdown Timer in Windows 11: Step-by-Step Guide
Lifehacks

How to Set a Shutdown Timer in Windows 11: Step-by-Step Guide

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.

Oct 29, 2026
6 min
How to Set a Shutdown Timer in Windows 11: Step-by-Step Guide

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.

How to Set a Shutdown Timer Using the Shutdown Command

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.

  1. Press Win + R to open the Run dialog.
  2. Type shutdown /s /t 3600.
  3. Press Enter or click "OK".
  4. Windows will schedule an automatic shutdown in one hour.

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.

Ready-to-Use Shutdown Timer Commands

To save time converting minutes to seconds, you can use these examples:

Time Until ShutdownCommand
10 minutesshutdown /s /t 600
30 minutesshutdown /s /t 1800
1 hourshutdown /s /t 3600
2 hoursshutdown /s /t 7200
3 hoursshutdown /s /t 10800
5 hoursshutdown /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.

Setting a Shutdown Timer with Command Prompt or PowerShell

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.

  1. Open the Start menu and type cmd.
  2. Launch "Command Prompt".
  3. Type shutdown /s /t 3600.
  4. Press Enter.

Your PC will turn off in an hour. The same command works in PowerShell and Windows Terminal.

How to Create a Desktop Shortcut for the Shutdown Timer

If you use the shutdown timer often, it's convenient to create a shortcut:

  1. Right-click on the desktop.
  2. Select "New" → "Shortcut".
  3. In the location field, enter shutdown.exe /s /t 3600.
  4. Click "Next" and name your shortcut, e.g., "Shutdown in 1 Hour".
  5. Click "Finish".

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.

Scheduling Automatic Shutdowns with Task Scheduler

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.

  1. Press Win + R, type taskschd.msc, and press Enter.
  2. In the right pane, choose "Create Basic Task".
  3. Name the task, e.g., "Automatic PC Shutdown".
  4. Select the frequency: "Daily", "Weekly", or "One time".
  5. Set the date and exact time for shutdown.
  6. When prompted for an action, select "Start a program".
  7. In "Program/script", enter shutdown.exe.
  8. In "Add arguments", type /s /t 0.
  9. Click "Next", review your settings, and select "Finish".

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.

How to Cancel a Scheduled Shutdown Timer

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.

  1. Press Win + R to open the Run dialog.
  2. Type shutdown /a.
  3. Press Enter.

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.

Cancelling Shutdowns Scheduled via Task Scheduler

If you used Task Scheduler for automatic shutdowns, disable the corresponding task:

  1. Press Win + R and type taskschd.msc.
  2. Open the "Task Scheduler Library".
  3. Find the shutdown task.
  4. Right-click it.
  5. Select "Disable" or "Delete".

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.

Why the Computer Doesn't Shut Down on 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.

Open Programs Prevent Shutdown

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.

The Computer Went to Sleep

If Windows enters sleep mode before the timer expires, shutdown may not occur at the scheduled time.

To prevent this:

  1. Go to Settings → System → Power (or "Power & battery" on laptops).
  2. Open screen and sleep settings.
  3. Set "Never" for sleep while plugged in during the task period.

You don't need to keep the display on-your computer can work with the screen off.

Command or Task Scheduler Errors

If the automatic shutdown isn't working:

  • Check that the command uses /s (not /r, which restarts the PC).
  • Verify the task's scheduled time in Task Scheduler.
  • Ensure the task is enabled and its trigger is active.
  • Use the "History" tab in Task Scheduler to see if the task ran.

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.

Conclusion

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.

Tags:

windows 11
shutdown timer
task scheduler
pc automation
command prompt
powershell
windows tips
productivity

Similar Articles

Loading...