Why Windows 11 Installs Updates at Bedtime and How to Stop It
🔍 WiseChecker

Why Windows 11 Installs Updates at Bedtime and How to Stop It

Quick fix: Open Settings → Windows Update → Advanced options → Active hours. Set to Manually and define active hours covering your entire awake-and-PC-use period (e.g., 7 AM to 11 PM). Windows won’t reboot for updates during these hours.

You leave your PC overnight to finish a long render or download. You come back to find Windows installed updates and rebooted — losing your work. The cause is “Active hours” not covering your actual usage pattern, plus Windows’ ability to schedule restarts outside active hours. Set wider active hours and disable automatic restarts to keep Windows from rebooting at inconvenient times.

Symptom: Windows reboots for updates during nighttime, while away, or when leaving PC running unattended.
Affects: Windows 11 (and Windows 10) with automatic updates enabled.
Fix time: ~5 minutes.

ADVERTISEMENT

What causes this

Windows Update has “Active hours” defining when you’re using the PC — restarts are avoided during these hours. By default, Active hours is set Automatically: Windows tries to learn your pattern, but it’s imperfect. If you start work at 9 AM and stop at 7 PM, but leave the PC running overnight, Windows thinks 11 PM-7 AM is fair game for reboots. Setting Active hours manually to cover your full overnight period prevents this.

Method 1: Set Active hours manually

The standard fix.

  1. Open Settings → Windows Update → Advanced options.
  2. Click Active hours.
  3. Change Adjust active hours from Automatically to Manually.
  4. Set Start time and End time. The maximum range is 18 hours (e.g., 6 AM to 12 AM gives you 18 hours of protection; 6 PM is the latest start that gives you full overnight protection).
  5. Choose what suits your pattern:
    • If you only use the PC during waking hours and shut it down at night: Active hours can be your awake hours (e.g., 8 AM to 11 PM).
    • If you leave the PC running overnight: Active hours should be 18 hours starting before bedtime (e.g., 6 PM to 12 AM gives protection 6 PM-12 AM, then 6 hours unprotected; not ideal but the max).
  6. Click Apply or close Settings.

This catches the most common case.

ADVERTISEMENT

Method 2: Disable automatic reboot for installs

Even outside active hours, prevent Windows from restarting automatically.

  1. For Windows 11 Pro/Enterprise: open gpedit.mscComputer Configuration → Administrative Templates → Windows Components → Windows Update → Manage end user experience.
  2. Open No auto-restart with logged on users for scheduled automatic updates installations. Set to Enabled.
  3. Click Apply.
  4. Run gpupdate /force from elevated Terminal.
  5. For Home edition, set via registry: HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU → DWORD NoAutoRebootWithLoggedOnUsers = 1.
  6. Now Windows waits for you to manually reboot for updates even if active hours expire.

This is the strongest available protection against unwanted reboots.

Method 3: Schedule restart time when prompted

For one-off control of when a specific update applies.

  1. When Windows Update shows a pending restart notification in Settings → Windows Update, click Schedule the restart.
  2. Pick a specific date and time. Windows commits to restarting then.
  3. This is per-update, not a permanent setting.
  4. Useful for one-off “I’m about to start a long task — restart tomorrow at noon instead.”
  5. Combine with Method 1 (manual active hours) and Method 2 (no auto-restart) for maximum control.

Quick per-update scheduling.

How to verify the fix worked

  • Open Settings → Windows Update → Advanced options → Active hours. Manually set; matches your pattern.
  • Leave the PC running overnight. Check next morning — no unexpected reboot.
  • For Pro: gpedit.msc shows the No auto-restart policy as Enabled.
  • Run Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name NoAutoRebootWithLoggedOnUsers in PowerShell. Returns 1 (if Method 2 applied).

If none of these work

If Windows still reboots at inconvenient times, three causes apply. Forced reboot for security updates: critical security updates may override your settings. There’s no full block — but lengthy active hours minimize the window. Group Policy override: corporate-managed PCs may have policies forcing scheduled restarts. Check gpresult /h C:\gpresult.html. Feature update: feature updates (the big version-jump kind, like 23H2 to 24H2) sometimes have their own scheduled restart that bypasses Active hours. Defer feature updates via Settings → Windows Update → Pause updates until you’re ready. For chronic interruption despite all measures, third-party tools like Windows Update Manager give finer control than the built-in settings.

Bottom line: Set Active hours manually to cover your full use period — disable auto-restart via Group Policy for the strongest protection. Windows respects your schedule.

ADVERTISEMENT