Your PC restarted for an update in the middle of your work because Windows did not know you were working. Active hours are how you tell it - once, in one minute.
Of all Windows Update complaints, the mid-work restart is the one people remember for years. It is also the one that is almost entirely preventable. Active hours will not stop updates downloading, and they were never meant to. They draw a line around your working day and promise that no automatic restart crosses it. This page sets that line properly and is honest about where the promise ends.
An example manual active hours window, 9 in the morning to 11 at night. Set yours around your real day, not this one.
Active hours are a promise about restarts only. Inside the window, Windows will not automatically restart your PC to finish an update. Downloads and installs can still happen quietly in the background - that part is harmless and even useful, because it means the update is ready the moment you choose to restart. Understanding this split ends most confusion: the setting never promised to stop updates, it promised to stop surprise restarts, and at that job it works.
The margins matter. If you sometimes start at 8:30, a 9:00 start leaves a gap exactly where a restart is allowed. Give the window half an hour of padding at both ends and it will quietly cover your real life instead of your official one.
Choose Automatically and Windows watches how you use the device and builds the window itself. For a regular routine this is genuinely convenient and it adapts when your routine shifts. The catch is honesty about the learning: Windows can only learn the pattern it has already seen. The first week on a new PC, or the first week of a new job schedule, the learned window may be wrong - and one wrong restart is all it takes to lose unsaved work. If your hours are stable, manual is the more predictable choice.
Windows caps the length of active hours, so there will always be a part of the day when restarts are permitted. That is deliberate design, not a bug: a PC that can never restart can never finish an update. The practical answer is to aim the open gap at the hours you are genuinely never working - the middle of the night for most people. Night-shift workers should flip the logic: their active window belongs across the day, and their restart gap falls in their sleeping hours. Also note that a deadline matters too - if an update has been waiting for many days, Windows becomes progressively more insistent. Active hours delay restarts; they are not an indefinite veto.
Active hours work best with one companion setting on the same page: Notify me when a restart is required to finish updating. With both set, the pattern becomes simple - updates prepare themselves quietly, you are told a restart is waiting, and the restart happens either at the time you schedule or in the gap outside your active window. Save your work when you leave the desk anyway; no setting replaces that habit, and every honest guide should say so.
See the exact clicks for active hours, automatic and manual, in the full video guide.
Watch Full VideoThree usual reasons. The window did not actually cover the time - check for an early start or a late finish outside the range. The update had been pending for many days, and Windows escalates its insistence over time. Or the restart was one you scheduled earlier and forgot. Check the window first; it is the cause most of the time.
Windows limits the length of the window, so it cannot cover the full 24 hours - most builds allow a generous window of up to about 18 hours. Aim the uncovered hours at the part of the day you truly never use the PC, usually the middle of the night.
No, and that is a good thing. Downloads and installs continue silently in the background, so when you do restart - at a time you choose - the update finishes quickly instead of starting from zero.