Specify deadline for automatic updates and restarts for quality update
Specify deadline for automatic updates and restarts for quality update
Explanation
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
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
Use cases
Sets, for quality updates, the deadline (days since the client discovered the update) and the grace period after the device enters restart-pending; once the effective deadline passes, the device restarts regardless of active hours. It is the modern lever to guarantee a patch level.
Defaults cited by Microsoft are a 1-day deadline and a 2-day grace period; deferral + deadline + grace should not exceed 7 days from publication. Values that are too short reduce the time users see notifications.
Microsoft sources: Enforcing compliance deadlines for updates · Update policies
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate- Value name
SetComplianceDeadlineForQU
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: WindowsUpdate/ComplianceDeadline
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SetComplianceDeadlineForQU' -Value 1 -Type DWord
# Deadline (days)
# Possible options:
# 0 = 0; 1 = 1; 2 = 2; 3 = 3; 4 = 4; 5 = 5; 6 = 6; 7 = 7; 8 = 8; 9 = 9; 10 = 10; 11 = 11
# 12 = 12; 13 = 13; 14 = 14; 15 = 15; 16 = 16; 17 = 17; 18 = 18; 19 = 19; 20 = 20; 21 = 21
# 22 = 22; 23 = 23; 24 = 24; 25 = 25; 26 = 26; 27 = 27; 28 = 28; 29 = 29; 30 = 30
Set-ItemProperty -Path $k -Name 'ConfigureDeadlineForQualityUpdates' -Value 7 -Type DWord
# Grace period (days)
# Possible options:
# 0 = 0
# 1 = 1
# 2 = 2
# 3 = 3
# 4 = 4
# 5 = 5
# 6 = 6
# 7 = 7
Set-ItemProperty -Path $k -Name 'ConfigureDeadlineGracePeriod' -Value 2 -Type DWord
# Don't auto-restart until end of grace period
# value not defined in the ADMX (the GPO editor usually writes 1/0)
# 1 = checked, 0 = unchecked; default state taken from the ADML
Set-ItemProperty -Path $k -Name 'ConfigureDeadlineNoAutoRebootForQualityUpdates' -Value 0 -Type DWordDisable
# Disable: WindowsUpdate/ComplianceDeadline
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SetComplianceDeadlineForQU' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsUpdate/ComplianceDeadline
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
Remove-ItemProperty -Path $k -Name 'SetComplianceDeadlineForQU' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ConfigureDeadlineForQualityUpdates' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ConfigureDeadlineGracePeriod' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ConfigureDeadlineNoAutoRebootForQualityUpdates' -ErrorAction SilentlyContinueOptions (3)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Deadline (days):Échéance (jours):ConfigureDeadlineForQualityUpdates | Drop-down listenum | ConfigureDeadlineForQualityUpdates | REG_DWORD | Required · Default choice (UI): #7
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Grace period (days):Période de grâce (jours):ConfigureDeadlineGracePeriod | Drop-down listenum | ConfigureDeadlineGracePeriod | REG_DWORD | Required · Default choice (UI): #2
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Don't auto-restart until end of grace periodConfigureDeadlineNoAutoRebootForQualityUpdates | Check boxboolean | ConfigureDeadlineNoAutoRebootForQualityUpdates | REG_DWORD | Default (UI): false Checked: implicit: 1Unchecked: implicit: 0 |