Skip to content
Follow
Windows 🟡 Intermediate

Schedule Your PC to Shut Down Automatically in Windows 11

Richard
Written by
Richard
Oct 18, 2026 9 min read
Windows 11 desktop with the Run dialog open, illustrating how to schedule an automatic PC shutdown.
Windows 11 desktop with the Run dialog open, illustrating how to schedule an automatic PC shutdown.

Power & sleep settings shut down the screen and put the PC to sleep, but they cannot switch Windows 11 off at a set time. To schedule a real shutdown, create a task in Task Scheduler that runs the shutdown command at the time you choose. For a one-off shutdown, run shutdown /s /t 3600 from the Run box to switch off after one hour.

Advertisement

Windows 11 labels the old “Power & sleep” page as Power & battery (Settings System Power & battery). Its timers handle display and sleep only. Task Scheduler is the built-in Windows tool for running programs at set times, and it works on both Windows 11 Home and Pro.

This post covers both methods, the sleep timers for comparison, and what to check when a scheduled shutdown does not run.

⚡ Quick Answer

Windows 11 cannot schedule a shutdown from Power & battery settings, because those timers only turn off the screen and put the PC to sleep. To shut down at a set time, create a task in Task Scheduler that runs shutdown /s. For a one-off shutdown, open the Run box and type shutdown /s /t 3600 to switch off after one hour.

Advertisement

What the Power & Battery Settings Can and Cannot Do

Open Settings System Power & battery and you will find timers for the screen and for sleep. Neither one shuts down Windows. Knowing the difference saves you from setting a timer and finding the PC still running in the morning.

Sleep, hibernate and shut down are different states

Sleep keeps your session in memory and uses a small amount of power. The PC wakes in seconds. Hibernate saves your session to disk and powers off, but Windows restores that session when you turn the PC back on. Neither state closes your apps.

A shutdown closes your apps and Windows itself. After a shutdown, the PC uses almost no power. Only the power supply and the motherboard (the main circuit board that connects the PC’s parts) still draw a little power while plugged in. If you want that, use one of the scheduling methods below.

Advertisement

Set the screen and sleep timers

If sleep is enough for you, these steps set when the screen turns off and when the PC sleeps. This is the closest the Power & battery page gets to a shutdown schedule.

  1. Open Settings by pressing Windows + I.
  2. Select System. The System page opens with the list of settings on the right.
  3. Select Power & battery. On older Windows 11 builds this page is the one that contains the sleep timers.
  4. Expand Screen, sleep, & hibernate timeouts. On earlier builds this section is called Screen and sleep.
  5. Choose a time next to When plugged in, put my device to sleep after. A desktop PC shows only the plugged-in options. A laptop also shows the On battery power options.

To undo this, return to the same page and set the timers to the values you used before, or choose Never.

Choose the Right Shutdown Method

Pick the method by how often you want the PC to shut down.

  • Every night or on certain days: use Task Scheduler. The task stays in place until you delete or disable it.
  • Once, after a delay: use the shutdown command with a timer. It is useful when you leave a large download or a video render running.

Schedule a Daily Shutdown with Task Scheduler

Task Scheduler runs a program at a time you set, and the program here is Windows' own shutdown tool. The task below shuts the PC down every day. A later step shows how to limit it to certain days.

Advertisement

Before you start

⚠️WarningA shutdown closes your apps.

If an app has unsaved work, Windows normally stops the shutdown and shows a screen listing the app that is blocking it. Do not add /f to the command unless you accept losing unsaved data, because /f forces apps to close without asking.

The steps use /s (shut down) and /t 60 (wait 60 seconds first). The delay gives you time to cancel if you are still at the PC.

Create the shutdown task

The steps below set up a daily shutdown, so your PC switches itself off at the same time each day.

  1. Open Task Scheduler from the Start menu. Type Task Scheduler and select the top result. If a User Account Control prompt asks for administrator permission, select Yes.
  2. Select Create Basic Task in the Actions pane on the right. The Create Basic Task Wizard opens.
  3. Type a name in the Name box, for example Nightly shutdown. The Description box is optional.
  4. Select Next. The Task Trigger page asks how often the task runs.
  5. Select Daily. For specific days only, such as weekdays, select Weekly instead and tick the days on the next page.
  6. Select Next. The page now asks for a start date and time.
  7. Set the Start time to when you want the PC to shut down. Leave Recur every at 1 days for a daily shutdown.
  8. Select Next. The Action page opens.
  9. Select Start a program, then select Next. The Start a Program page opens.
  10. Type shutdown in the Program/script box. Leave the Start in (optional) box empty.
  11. Type /s /t 60 in the Add arguments (optional) box. Arguments are extra instructions that tell the program what to do.
  12. Select Next. The Summary page lists the name, trigger and action.
  13. Select Finish. Task Scheduler adds the task and closes the wizard. If you see an error, check that you typed shutdown as the program and the arguments in the correct boxes.

Test the task

Testing starts the real shutdown, so save your work first. If you change your mind, you can cancel the countdown within the 60 seconds.

Advertisement
  1. Select Task Scheduler Library in the left pane. Your new task appears in the middle list.
  2. Right-click the task and select Run. Windows shows a warning that the PC will shut down shortly.
  3. To check the whole process, let the countdown finish. Otherwise, press Windows + R, type shutdown /a and press Enter to stop it.

Make the task run on a laptop

📝Good to KnowBy default, tasks created in Task Scheduler start only when the computer is on AC power.

AC power means mains power from the wall socket. A laptop running on battery at shutdown time skips the task. Change that setting if you want the shutdown to run on battery too.

  1. Double-click the task in Task Scheduler Library. The task's Properties window opens.
  2. Select the Conditions tab.
  3. Clear Start the task only if the computer is on AC power. Clearing it lets the task run on battery.
  4. Select the Settings tab and tick Run task as soon as possible after a scheduled start is missed. This runs the shutdown when the PC was asleep or off at the scheduled time and wakes later.
  5. Select OK. The Properties window closes and Task Scheduler saves your changes.

Consider the trade-off in the last option before you choose it. If the PC wakes at 9 a.m. after missing a 1 a.m. shutdown, it can shut down soon after you start work. Leave it cleared if that would annoy you.

Shut down when you are signed out

A basic task runs only while you are signed in to Windows. If you sign out each night but leave the PC on, the task does not run. Open the task's Properties, stay on the General tab and select Run whether user is logged on or not.

Windows asks for your account password when you select OK. A Microsoft account uses the same password you sign in with. An account with no password may not work with this option.

Advertisement

Shut Down Once After a Set Time

The shutdown command with a timer needs no setup. It creates no task, so there is nothing to delete later. The timer counts in seconds, so 1800 is half an hour, 3600 is one hour and 7200 is two hours.

Start a one-off timer

  1. Press Windows + R. The Run dialog opens.
  2. Type shutdown /s /t 3600 in the Open box. Replace 3600 with the number of seconds you want.
  3. Select OK. Windows shows a notification that the shutdown is scheduled. Nothing else changes on screen.

Windows closes your apps when the timer ends, and it also warns you shortly before. Save your work before you leave the PC.

Cancel a one-off timer

Press Windows + R, type shutdown /a and press Enter. The /a command cancels a pending shutdown. This works only while the countdown is running.

If the Scheduled Shutdown Does Not Run

Most failures come from the conditions around the task, not from the command. Check these in order.

Advertisement
  • The PC was asleep or off at the set time. A sleeping PC does not run the task unless you enabled the missed-start option described above.
  • A laptop was on battery. Clear Start the task only if the computer is on AC power on the Conditions tab.
  • You were signed out. Set the task to Run whether user is logged on or not.
  • An app blocked the shutdown. Windows shows a screen naming the app. Save your work and close it, or accept that the shutdown will wait. Adding /f closes apps without saving, which can lose data. Save your work first, then decide.
  • The task did not run. Open Task Scheduler Library, select the task and look at the Last Run Result column. A result of The operation completed successfully means the task ran, so the cause lies elsewhere.

If the Task Scheduler window shows nothing in the middle pane, select Task Scheduler Library in the left pane first.

Change or Remove the Schedule

Task Scheduler keeps the task until you remove it, so a forgotten task can shut down your PC at a bad time. To change the time, double-click the task in Task Scheduler Library and open the Triggers tab. Select the trigger, select Edit, change the time and select OK.

To pause the schedule without losing the task, right-click it and select Disable. To remove it, right-click the task and select Delete, then select Yes when Windows asks you to confirm.

What to Do Next

Your PC now switches off at the time you set, so check the task's Last Run Result the next morning to confirm it ran. To restart the PC on a schedule instead, repeat the Task Scheduler steps and type /r /t 60 in the arguments box. The /r option restarts the PC rather than shutting it down. A major Windows update does not normally remove tasks, but check the Task Scheduler Library after one.

Have a question about this guide?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *