Specify deadline for automatic updates and restarts for quality update
Verified with Windows 11 25H2 — updated on July 30, 2026
Supported on: At least Windows Server 2016, Windows 10 Version 1709
Path in the GPO console
Computer Configuration\Administrative Templates\Windows Components\Windows Update\Manage end user experience Description
This policy lets you specify the number of days before quality updates are installed on devices automatically, and a grace period after which required restarts occur automatically. Set deadlines for quality updates to meet your compliance goals. Updates will be downloaded and installed as soon as they are offered and automatic restarts will be attempted outside of active hours. Once the deadline has passed, restarts will occur regardless of active hours, and users will not be able to reschedule. If the deadline is set to 0 days, the update will be installed immediately upon offering, but might not finish within the day due to device availability and network connectivity. Set a grace period for quality updates to guarantee users a minimum time to manage their restarts once updates are installed. Users will be able to schedule restarts during the grace period and Windows can still automatically restart outside of active hours if users choose not to schedule restarts. The grace period might not take effect if users already have more than the number of days set as grace period to manage their restart, based on deadline configurations. You can set the device to delay restarting until both the deadline and grace period have expired. If you disable or do not configure this policy, devices will get updates and will restart according to the default schedule. This policy will override the following policies: 1. Specify deadline before auto restart for update installation 2. Specify Engaged restart transition and notification schedule for updates 3. Always automatically restart at the scheduled time 4. Configure Automatic Updates
Registry
Software\Policies\Microsoft\Windows\WindowsUpdate Value name: SetComplianceDeadlineForQU
Enabled: SetComplianceDeadlineForQU = 1
Disabled: SetComplianceDeadlineForQU = 0
MDM / Intune (CSP)
./Device/Vendor/MSFT/Policy/Config/Update/ConfigureDeadlineForQualityUpdates Multiple CSP matches are possible; the first one was selected.
Microsoft Learn documentation Mapping data: Microsoft Learn (CC BY 4.0)
Export Builder
BETAConfigure 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: Specify deadline for automatic updates and restarts for quality update
; State: Enabled
; Supported on: At least Windows Server 2016, Windows 10 Version 1709
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate]
"SetComplianceDeadlineForQU"=dword:00000001
"ConfigureDeadlineForQualityUpdates"=dword:00000007
"ConfigureDeadlineGracePeriod"=dword:00000002
"ConfigureDeadlineNoAutoRebootForQualityUpdates"=dword:00000000 More formats (PowerShell, Intune, SCCM)
PowerShell
# Exported from gporais.com
# Policy: Specify deadline for automatic updates and restarts for quality update
# State: Enabled
# Supported on: At least Windows Server 2016, Windows 10 Version 1709
$path = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'SetComplianceDeadlineForQU' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'ConfigureDeadlineForQualityUpdates' -Value 7 -Type DWord
Set-ItemProperty -Path $path -Name 'ConfigureDeadlineGracePeriod' -Value 2 -Type DWord
Set-ItemProperty -Path $path -Name 'ConfigureDeadlineNoAutoRebootForQualityUpdates' -Value 0 -Type DWord Intune XML
OMA-URI: ./Device/Vendor/MSFT/Policy/Config/Update/ConfigureDeadlineForQualityUpdates
Data type: String
Value:
<enabled/>
<data id="ConfigureDeadlineForQualityUpdates" value="7"/>
<data id="ConfigureDeadlineGracePeriod" value="2"/>
<data id="ConfigureDeadlineNoAutoRebootForQualityUpdates" value="0"/> Intune Remediation
# === Detection script ===
# Exported from gporais.com
# Policy: Specify deadline for automatic updates and restarts for quality update
# State: Enabled
# Supported on: At least Windows Server 2016, Windows 10 Version 1709
function Test-RegistryValue {
param(
[Parameter(Mandatory = $true)][string]$Path,
[Parameter(Mandatory = $true)][string]$Name,
[object]$Expected,
[ValidateSet('String', 'DWord', 'MultiString')][string]$Kind = 'String',
[switch]$Absent
)
try {
$item = Get-ItemProperty -LiteralPath $Path -Name $Name -ErrorAction Stop
} catch {
return $Absent.IsPresent
}
if ($Absent.IsPresent) { return $false }
$actual = $item.$Name
if ($Kind -eq 'DWord') { return ([int64]$actual) -eq ([int64]$Expected) }
if ($Kind -eq 'MultiString') {
$actualValues = @($actual)
$expectedValues = @($Expected)
if ($actualValues.Count -ne $expectedValues.Count) { return $false }
for ($i = 0; $i -lt $expectedValues.Count; $i++) {
if ([string]$actualValues[$i] -ne [string]$expectedValues[$i]) { return $false }
}
return $true
}
return [string]$actual -eq [string]$Expected
}
$checks = @(
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetComplianceDeadlineForQU' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ConfigureDeadlineForQualityUpdates' -Expected 7 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ConfigureDeadlineGracePeriod' -Expected 2 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ConfigureDeadlineNoAutoRebootForQualityUpdates' -Expected 0 -Kind DWord)
)
if ($checks -notcontains $false) {
Write-Output 'Compliant'
exit 0
}
Write-Output 'Non-compliant'
exit 1
# === Remediation script ===
# Exported from gporais.com
# Policy: Specify deadline for automatic updates and restarts for quality update
# State: Enabled
# Supported on: At least Windows Server 2016, Windows 10 Version 1709
$path = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'SetComplianceDeadlineForQU' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'ConfigureDeadlineForQualityUpdates' -Value 7 -Type DWord
Set-ItemProperty -Path $path -Name 'ConfigureDeadlineGracePeriod' -Value 2 -Type DWord
Set-ItemProperty -Path $path -Name 'ConfigureDeadlineNoAutoRebootForQualityUpdates' -Value 0 -Type DWord SCCM scripts
# Exported from gporais.com
# Policy: Specify deadline for automatic updates and restarts for quality update
# State: Enabled
# Supported on: At least Windows Server 2016, Windows 10 Version 1709
# SCCM Configuration Item guidance:
# Create a Configuration Item of type "Setting: Script".
# Discovery script: use the Detection script below.
# Remediation script: use the Remediation script below.
# Compliance rule: the Discovery script output equals 'Compliant'.
# === Detection script ===
# Exported from gporais.com
# Policy: Specify deadline for automatic updates and restarts for quality update
# State: Enabled
# Supported on: At least Windows Server 2016, Windows 10 Version 1709
function Test-RegistryValue {
param(
[Parameter(Mandatory = $true)][string]$Path,
[Parameter(Mandatory = $true)][string]$Name,
[object]$Expected,
[ValidateSet('String', 'DWord', 'MultiString')][string]$Kind = 'String',
[switch]$Absent
)
try {
$item = Get-ItemProperty -LiteralPath $Path -Name $Name -ErrorAction Stop
} catch {
return $Absent.IsPresent
}
if ($Absent.IsPresent) { return $false }
$actual = $item.$Name
if ($Kind -eq 'DWord') { return ([int64]$actual) -eq ([int64]$Expected) }
if ($Kind -eq 'MultiString') {
$actualValues = @($actual)
$expectedValues = @($Expected)
if ($actualValues.Count -ne $expectedValues.Count) { return $false }
for ($i = 0; $i -lt $expectedValues.Count; $i++) {
if ([string]$actualValues[$i] -ne [string]$expectedValues[$i]) { return $false }
}
return $true
}
return [string]$actual -eq [string]$Expected
}
$checks = @(
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetComplianceDeadlineForQU' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ConfigureDeadlineForQualityUpdates' -Expected 7 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ConfigureDeadlineGracePeriod' -Expected 2 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ConfigureDeadlineNoAutoRebootForQualityUpdates' -Expected 0 -Kind DWord)
)
if ($checks -notcontains $false) {
Write-Output 'Compliant'
exit 0
}
Write-Output 'Non-compliant'
exit 1
# === Remediation script ===
# Exported from gporais.com
# Policy: Specify deadline for automatic updates and restarts for quality update
# State: Enabled
# Supported on: At least Windows Server 2016, Windows 10 Version 1709
$path = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'SetComplianceDeadlineForQU' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'ConfigureDeadlineForQualityUpdates' -Value 7 -Type DWord
Set-ItemProperty -Path $path -Name 'ConfigureDeadlineGracePeriod' -Value 2 -Type DWord
Set-ItemProperty -Path $path -Name 'ConfigureDeadlineNoAutoRebootForQualityUpdates' -Value 0 -Type DWord Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.