en-US windows computer

Turn off auto-restart for updates during active hours

Verified with Windows 11 25H2 — updated on July 30, 2026

Windows 11 25H2

Supported on: At least Windows Server 2016 or Windows 10

Path in the GPO console

Computer Configuration\Administrative Templates\Windows Components\Windows Update\Manage end user experience

Description

If you enable this policy, the PC will not automatically restart after updates during active hours. The PC will attempt to restart outside of active hours. Note that the PC must restart for certain updates to take effect. If you disable or do not configure this policy and have no other reboot group policies, the user selected active hours will be in effect. If any of the following two policies are enabled, this policy has no effect: 1. No auto-restart with logged on users for scheduled automatic updates installations. 2. Always automatically restart at scheduled time. Note that the default max active hours range is 18 hours from the active hours start time unless otherwise configured via the Specify active hours range for auto-restarts policy.

Registry

HKLM Software\Policies\Microsoft\Windows\WindowsUpdate

Value name: SetActiveHours

Enabled: SetActiveHours = 1

Disabled: SetActiveHours = 0

More options available

Options

Start:
ActiveHoursStart enum
  • 12 AM -> 0
  • 1 AM -> 1
  • 2 AM -> 2
  • 3 AM -> 3
  • 4 AM -> 4
  • 5 AM -> 5
  • 6 AM -> 6
  • 7 AM -> 7
  • 8 AM -> 8 (default)
  • 9 AM -> 9
  • 10 AM -> 10
  • 11 AM -> 11
  • 12 PM -> 12
  • 1 PM -> 13
  • 2 PM -> 14
  • 3 PM -> 15
  • 4 PM -> 16
  • 5 PM -> 17
  • 6 PM -> 18
  • 7 PM -> 19
  • 8 PM -> 20
  • 9 PM -> 21
  • 10 PM -> 22
  • 11 PM -> 23
End:
ActiveHoursEnd enum
  • 12 AM -> 0
  • 1 AM -> 1
  • 2 AM -> 2
  • 3 AM -> 3
  • 4 AM -> 4
  • 5 AM -> 5
  • 6 AM -> 6
  • 7 AM -> 7
  • 8 AM -> 8
  • 9 AM -> 9
  • 10 AM -> 10
  • 11 AM -> 11
  • 12 PM -> 12
  • 1 PM -> 13
  • 2 PM -> 14
  • 3 PM -> 15
  • 4 PM -> 16
  • 5 PM -> 17 (default)
  • 6 PM -> 18
  • 7 PM -> 19
  • 8 PM -> 20
  • 9 PM -> 21
  • 10 PM -> 22
  • 11 PM -> 23

MDM / Intune (CSP)

./Device/Vendor/MSFT/Policy/Config/Update/ActiveHoursEnd
Device Since Windows 10, version 1607 [10.0.14393] and later Official mapping (Microsoft Learn)

Multiple CSP matches are possible; the first one was selected.

Microsoft Learn documentation Mapping data: Microsoft Learn (CC BY 4.0)

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Turn off auto-restart for updates during active hours
; State: Enabled
; Supported on: At least Windows Server 2016 or Windows 10

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate]
"SetActiveHours"=dword:00000001
"ActiveHoursStart"=dword:00000008
"ActiveHoursEnd"=dword:00000011
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Turn off auto-restart for updates during active hours
# State: Enabled
# Supported on: At least Windows Server 2016 or Windows 10

$path = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'SetActiveHours' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'ActiveHoursStart' -Value 8 -Type DWord
Set-ItemProperty -Path $path -Name 'ActiveHoursEnd' -Value 17 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview