Ouvrir dans l'explorateur

Specify deadline for automatic updates and restarts for feature update

Specify deadline for automatic updates and restarts for feature update

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Windows Update › Gérer l’expérience utilisateur final EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Windows Update › Manage end user experience
Pris en charge sur
Windows Server 2016, Windows 10 version 1709 ou versions supérieures EN : At least Windows Server 2016, Windows 10 Version 1709
Fichier ADMX
WindowsUpdate.admx
Nom interne
WindowsUpdate/ComplianceDeadlineForFU

Explication

Texte français issu de Windows 11 26H2

This policy lets you specify the number of days before feature updates are installed on devices automatically, and a grace period after which required restarts occur automatically.

Set deadlines for feature updates and 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 feature 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 feature updates are installed on devices automatically, and a grace period after which required restarts occur automatically.

Set deadlines for feature updates and 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 feature 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

Cas d'usage

Équivalent du précédent pour les mises à jour de fonctionnalités : nombre de jours avant l’installation forcée et période de grâce avant le redémarrage forcé. Microsoft cite 2 jours d’échéance et 7 jours de grâce par défaut.

À combiner avec « Sélectionner la version cible de la mise à jour de fonctionnalités » pour planifier une migration (par exemple vers une nouvelle version de Windows 11) avec une date de fin connue des équipes.

Sources Microsoft : Enforcing compliance deadlines for updates · Update policies

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate
Nom de la valeur
SetComplianceDeadlineForFU
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : WindowsUpdate/ComplianceDeadlineForFU
$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 'SetComplianceDeadlineForFU' -Value 1 -Type DWord
# Échéance (jours)
# Options possibles :
#   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 'ConfigureDeadlineForFeatureUpdates' -Value 2 -Type DWord
# Période de grâce (jours)
# Options possibles :
#   0 = 0
#   1 = 1
#   2 = 2
#   3 = 3
#   4 = 4
#   5 = 5
#   6 = 6
#   7 = 7
Set-ItemProperty -Path $k -Name 'ConfigureDeadlineGracePeriodForFeatureUpdates' -Value 7 -Type DWord
# Don't auto-restart until end of grace period
# valeur non définie dans l'ADMX (l'éditeur GPO écrit en général 1/0)
# 1 = coché, 0 = décoché ; état par défaut de la case repris de l’ADML
Set-ItemProperty -Path $k -Name 'ConfigureDeadlineNoAutoRebootForFeatureUpdates' -Value 0 -Type DWord

Désactiver

# Désactiver : WindowsUpdate/ComplianceDeadlineForFU
$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 'SetComplianceDeadlineForFU' -Value 0 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : WindowsUpdate/ComplianceDeadlineForFU
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
Remove-ItemProperty -Path $k -Name 'SetComplianceDeadlineForFU' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ConfigureDeadlineForFeatureUpdates' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ConfigureDeadlineGracePeriodForFeatureUpdates' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ConfigureDeadlineNoAutoRebootForFeatureUpdates' -ErrorAction SilentlyContinue

Options (3)

LibelléContrôleValeur de registreType REGContraintes / détails
Échéance (jours):Deadline (days):ConfigureDeadlineForFeatureUpdatesListe déroulanteenumConfigureDeadlineForFeatureUpdatesREG_DWORD
Obligatoire · Choix par défaut (interface) : n° 2
LibelléValeur
0REG_DWORD = 0
1REG_DWORD = 1
2REG_DWORD = 2
3REG_DWORD = 3
4REG_DWORD = 4
5REG_DWORD = 5
6REG_DWORD = 6
7REG_DWORD = 7
8REG_DWORD = 8
9REG_DWORD = 9
10REG_DWORD = 10
11REG_DWORD = 11
12REG_DWORD = 12
13REG_DWORD = 13
14REG_DWORD = 14
15REG_DWORD = 15
16REG_DWORD = 16
17REG_DWORD = 17
18REG_DWORD = 18
19REG_DWORD = 19
20REG_DWORD = 20
21REG_DWORD = 21
22REG_DWORD = 22
23REG_DWORD = 23
24REG_DWORD = 24
25REG_DWORD = 25
26REG_DWORD = 26
27REG_DWORD = 27
28REG_DWORD = 28
29REG_DWORD = 29
30REG_DWORD = 30
Période de grâce (jours):Grace Period (days):ConfigureDeadlineGracePeriodForFeatureUpdatesListe déroulanteenumConfigureDeadlineGracePeriodForFeatureUpdatesREG_DWORD
Obligatoire · Choix par défaut (interface) : n° 7
LibelléValeur
0REG_DWORD = 0
1REG_DWORD = 1
2REG_DWORD = 2
3REG_DWORD = 3
4REG_DWORD = 4
5REG_DWORD = 5
6REG_DWORD = 6
7REG_DWORD = 7
Don't auto-restart until end of grace periodConfigureDeadlineNoAutoRebootForFeatureUpdatesCase à cocherbooleanConfigureDeadlineNoAutoRebootForFeatureUpdatesREG_DWORD
Défaut (interface) : false
Coché : implicite : 1
Décoché : implicite : 0

Disponibilité

Windows 11

✓ 26H2✓ 25H2✓ 24H2— 23H2— 22H2— 21H2

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016