How to Schedule Active Hours Beyond 18 Hours on Windows 11
🔍 WiseChecker

How to Schedule Active Hours Beyond 18 Hours on Windows 11

Quick fix: Windows’s Settings UI caps Active Hours at 18 hours per day. To exceed that, edit registry value SmartActiveHoursState to 1 under HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings — Windows then uses machine-learning to set Active Hours automatically based on observed usage, effectively eliminating the cap.

You leave your PC running 24/7 — workstation, plex server, edit-and-render machine. Default Active Hours allow Windows Update to restart during the 6 quiet hours, which means unexpected reboots when you walk back into the room. The Settings UI lets you set Active Hours up to 18 hours wide, but no further. Two registry edits let you either enable Smart (ML-based, no fixed window) or extend the manual cap to 24 hours.

Symptom: Active Hours in Settings → Windows Update is capped at 18 hours; you want to prevent restarts the entire day or use ML-based detection.
Affects: Windows 11 (and Windows 10) running Windows Update auto-restart.
Fix time: ~5 minutes.

ADVERTISEMENT

What causes this

Windows Update enforces an 18-hour ceiling on Active Hours to ensure at least 6 hours per day are available for restart-required updates. The cap is hard-coded into the Settings UI but readable from registry values that Windows checks during update orchestration. By writing the registry directly, you can either enable Smart Active Hours (Microsoft’s ML algorithm that picks restart times based on usage history) or extend the manual range up to 24 hours.

Note: removing Active Hours entirely is risky for security — Windows can’t reboot to apply security patches at all. Use this for a controlled deployment (workstation, server) where you manually reboot weekly.

Method 1: Enable Smart Active Hours (recommended)

Smart Active Hours uses Windows’s telemetry of your usage to determine when to avoid restarts. No fixed cap, and adapts to your schedule.

  1. Press Win + R, type regedit, press Enter.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings.
  3. Find or create a DWORD (32-bit) value named SmartActiveHoursState.
  4. Set it to 1 (Smart Active Hours enabled).
  5. Find or create a DWORD value named IsActiveHoursEnabled. Set to 1.
  6. Close Registry Editor and reboot.
  7. Open Settings → Windows Update → Active hours. The dropdown now shows Automatically as an option — Windows decides based on your usage.

This is the cleanest path. Windows learns your work hours over a few days and avoids restarts during them, with no hard cap.

ADVERTISEMENT

Method 2: Set a 24-hour manual Active Hours window

For users who want a fixed schedule but extending beyond 18 hours.

  1. Open Registry Editor as in Method 1.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings.
  3. Find ActiveHoursStart (DWORD). Set value to 0 (decimal) — represents midnight (00:00).
  4. Find ActiveHoursEnd. Set value to 23 (decimal) — represents 11 PM (23:00).
  5. Find ActiveHoursMaxRange. Set value to 24 (decimal). This lifts the 18-hour cap.
  6. Close Registry Editor.
  7. Restart the Windows Update service: in Terminal (Admin), run Restart-Service -Name wuauserv.
  8. Open Settings → Windows Update → Active hours and verify the displayed range matches your registry settings.

This sets a 23-hour Active Hours window with 1 hour quiet time. Windows still has a brief window to restart, but practically the chance of an unexpected restart is near zero.

Method 3: Schedule reboots via task instead of relying on Active Hours

For maximum control. Disable Windows Update auto-restart entirely; schedule your own reboot task.

  1. Open Group Policy Editor (gpedit.msc) — Windows 11 Pro/Enterprise only. For Home: skip to step 3.
  2. Navigate to Computer Configuration → Administrative Templates → Windows Components → Windows Update → Manage end user experience. Open No auto-restart with logged on users for scheduled automatic updates installations, set to Enabled.
  3. For Home edition or as an alternative: open Registry Editor → HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU. Create DWORD NoAutoRebootWithLoggedOnUsers = 1.
  4. Open Task Scheduler. Click Create Basic Task.
  5. Name: Scheduled Weekly Reboot. Trigger: Weekly, Sunday, 4:00 AM.
  6. Action: Start a programshutdown.exe with arguments /r /f /t 0.
  7. Run with highest privileges. Save.

The trade-off: you take responsibility for ensuring the PC reboots regularly so security patches apply. Schedule weekly at minimum.

How to verify the fix worked

  • Run Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" in PowerShell. Verify SmartActiveHoursState or your manual values are set.
  • Open Settings → Windows Update → Active hours. With Smart enabled: shows “Automatically.” With manual extended: shows your 23+ hour window.
  • Test by triggering a Windows Update install. The system should not restart during your work hours.

If none of these work

If Active Hours keep reverting to 18 hours after the registry change, Group Policy is overriding your setting. Run gpresult /h C:\gpresult.html from elevated Command Prompt and open the HTML. Look in Computer Settings → Administrative Templates → Windows Update for policies that set Active Hours from a different source. On corporate PCs, Intune or AD policies will reapply during gpupdate runs — you can’t bypass that without admin escalation. For unmanaged systems where the registry change reverts, the Windows Update Orchestrator may rewrite values during its weekly maintenance task — pair the registry change with a scheduled task that re-applies values daily, or use Method 3’s scheduled-reboot approach which doesn’t rely on Active Hours at all.

Bottom line: The 18-hour Active Hours cap is just registry values — Smart Active Hours removes the cap with ML, manual edits extend it to 24, and a scheduled reboot task bypasses Active Hours entirely.

ADVERTISEMENT