Press Win + R and enter shutdown /s /t 3600 and the PC shuts down in 3600 seconds (1 hour); to cancel, enter shutdown /a. To shut down at the same time every day, register it once in Windows Task Scheduler.
If working out the seconds is a bother, PC Buster's Shutdown Timer does it with one time button and Schedule (free). Get PC Buster · details
shutdown /s /t 3600
/s means shut down, and the number after /t is in seconds. It is seconds, not minutes, so multiply the minutes you want by 60. The form you often see online, shutdown -s -t 3600, with dashes instead of slashes, works the same way.
| When to shut down | Command |
|---|---|
| In 30 minutes | shutdown /s /t 1800 |
| In 1 hour | shutdown /s /t 3600 |
| In 2 hours | shutdown /s /t 7200 |
| In 3 hours | shutdown /s /t 10800 |
| Restart instead, in 1 hour | shutdown /r /t 3600 |
Once it is scheduled, Windows shows a notice that you are about to be signed out. Closing the notice does not cancel the schedule.

Buttons, not commands. PC Buster finds what opens ad pop-ups, clears junk and points to what is broken. Checks and cleanup are free.
Free downloadThe shutdown command only takes "in how many seconds", not a clock time. Work out how many minutes are left until the time you want and convert that to seconds. If it is 11:20 p.m. now and you want the PC off at 1 a.m., that is 100 minutes, so shutdown /s /t 6000.
If you change your mind, press Win + R again and enter the line below. A notice such as "Logoff is cancelled" means it worked.
shutdown /a
If a shutdown is already scheduled and you try to schedule another, you may get an error saying one is already scheduled. Cancel it first with shutdown /a, then enter the new one.
shutdown /s /t 3600 and click Next.Make a second "Cancel shutdown" shortcut the same way with shutdown /a.
If a child uses the PC late into the night, or an office PC often gets left on, register it in Task Scheduler, which comes with Windows.
Task Scheduler and open it.shutdown in Program/script and /s /t 300 in Add arguments. The five-minute margin gives whoever is using the PC time to see the notice and save their work.When you no longer need it, find the task under Task Scheduler Library on the left, right-click it and click Delete. If you see lots of tasks you didn't create, see Unknown tasks in Task Scheduler.
PC Buster's Shutdown Timer (under Tools) shuts the PC down after the time you pick: click the 30 min, 1 h, 2 h or 3 h button, or type anything from 1 to 1,440 minutes (one day), then click Schedule. Tick Restart, don't shut down to restart instead. The shutdown time is shown on screen, and Cancel schedule cancels it. PC Buster has no button for a repeating daily shutdown, so use Task Scheduler as in step 5 above. It is free.
Windows Update fails or keeps spinningStop automatic update restartsWindows activation errorTurn off Start menu ads and recommendationsOld right-click menuWindows search not workingTaskbar not workingMake Chrome the default browserPC clock keeps going wrongStart in Safe ModeHow to reset WindowsSee all fixes