Configure Automatic Updates
Configuration du service Mises à jour automatiques
Explanation
Specifies whether this computer will receive security updates and other important downloads through the Windows automatic updating service.
Note: This policy does not apply to Windows RT.
This setting lets you specify whether automatic updates are enabled on this computer. If the service is enabled, you must select one of the four options in the Group Policy Setting:
2 = Notify before downloading and installing any updates.
When Windows finds updates that apply to this computer, users will be notified that updates are ready to be downloaded. After going to Windows Update, users can download and install any available updates.
3 = (Default setting) Download the updates automatically and notify when they are ready to be installed
Windows finds updates that apply to the computer and downloads them in the background (the user is not notified or interrupted during this process). When the downloads are complete, users will be notified that they are ready to install. After going to Windows Update, users can install them.
4 = Automatically download updates and install them on the schedule specified below.
When "Automatic" is selected as the scheduled install time, Windows will automatically check, download, and install updates. The device will reboot as per Windows default settings unless configured by group policy. (Applies to Windows 10, version 1809 and higher)
Specify the schedule using the options in the Group Policy Setting. For version 1709 and above, there is an additional choice of limiting updating to a weekly, bi-weekly, or monthly occurrence. If no schedule is specified, the default schedule for all installations will be every day at 3:00 AM. If any updates require a restart to complete the installation, Windows will restart the computer automatically. (If a user is signed in to the computer when Windows is ready to restart, the user will be notified and given the option to delay the restart.)
On Windows 8 and later, you can set updates to install during automatic maintenance instead of a specific schedule. Automatic maintenance will install updates when the computer is not in use and avoid doing so when the computer is running on battery power. If automatic maintenance is unable to install updates for 2 days, Windows Update will install updates right away. Users will then be notified about an upcoming restart, and that restart will only take place if there is no potential for accidental data loss.
5 = Allow local administrators to select the configuration mode that Automatic Updates should notify and install updates. (This option has not been carried over to any Win 10 Versions)
With this option, local administrators will be allowed to use the Windows Update control panel to select a configuration option of their choice. Local administrators will not be allowed to disable the configuration for Automatic Updates.
7 = Notify for install and notify for restart. (Windows Server only)
With this option from Windows Server 2016, applicable only to Server SKU devices, local administrators will be allowed to use Windows Update to proceed with installations or reboots manually.
If the status for this policy is set to Disabled, any updates that are available on Windows Update must be downloaded and installed manually. To do this, search for Windows Update using Start.
If the status is set to Not Configured, use of Automatic Updates is not specified at the Group Policy level. However, an administrator can still configure Automatic Updates through Control Panel.
Indique si l’ordinateur doit recevoir les mises à jour de sécurité et d’autres téléchargements importants via le service Mises à jour automatiques de Windows.
Remarque : cette stratégie ne s’applique pas à Windows RT.
Ce paramètre de stratégie vous permet de spécifier si les mises à jour automatiques sont activées sur cet ordinateur. Si le service est activé, vous devez sélectionner l’une des quatre options du paramètre de stratégie de groupe :
2 = Avertir avant de télécharger et d’installer des mises à jour.
Lorsque Windows trouve des mises à jour s’appliquant à l’ordinateur, un message indique à l’utilisateur que des mises à jour sont prêtes pour le téléchargement. Après avoir accédé à Windows Update, les utilisateurs peuvent télécharger et installer les mises à jour disponibles.
3 = (Valeur par défaut) Télécharger automatiquement les mises à jour et avertir l’utilisateur lorsqu’elles sont prêtes pour l’installation
Windows trouve des mises à jour s’appliquant à votre ordinateur et les télécharge en tâche de fond (l’utilisateur n’est ni averti ni interrompu au cours du processus). Une fois les téléchargements terminés, un message indique aux utilisateurs que les mises à jour sont prêtes à être installées. Après avoir accédé à Windows Update, les utilisateurs peuvent les installer.
4 = Télécharger automatiquement les mises à jour et les installer selon la planification spécifié.
Lorsque « Automatique » est sélectionné comme heure d'installation planifiée, Windows vérifie, télécharge et installe automatiquement les mises à jour. L'appareil redémarrera conformément aux paramètres par défaut, à moins qu'il ait été configuré par une stratégie de groupe (s'applique à Windows 10, version 1809 et supérieure)
Spécifiez la planification à l’aide des options dans le paramètre de stratégie de groupe. Pour la version 1709 et ultérieures, vous pouvez également limiter la fréquence des mises à jour à hebdomadaire, bi-hebdomadaire ou mensuelle. Si aucune planification n’est spécifiée, la planification par défaut pour toutes les installations est chaque jour à 3h00. Si des mises à jour requièrent un démarrage pour terminer l’installation, Windows redémarre l’ordinateur automatiquement. (Si un utilisateur est connecté à l’ordinateur lorsque Windows est prêt à redémarrer, il en est informé par un message qui lui donne la possibilité de retarder le redémarrage).
Sur Windows 8 et versions ultérieures, vous pouvez configurer l’installation des mises à jour durant la maintenance automatique plutôt que selon une planification spécifique. La maintenance automatique installe les mises à jour quand l’ordinateur n’est pas en cours d’utilisation et évite de le faire quand il fonctionne sur batterie. Si la maintenance automatique n’est pas en mesure d’installer les mises à jour pendant deux jours, Windows Update les installe immédiatement. Les utilisateurs sont informés quant à l’imminence d’un redémarrage, qui n’a lieu que s’il n’y a aucun risque de perte accidentelle de données.
5 = Autoriser les administrateurs locaux à sélectionner le mode configuration selon lequel les Mises à jour automatiques doivent informer l’utilisateur et installer les mises à jour. (Cette option n'est prise en charge par aucune des versions de Windows 10).
Avec cette option, les administrateurs locaux sont autorisés à utiliser le Panneau de configuration Windows Update pour sélectionner l’option de configuration de leur choix. En revanche, ils ne sont pas autorisés à désactiver la configuration des mises à jour automatiques.
7 = Notifier pour installation et notifier pour redémarrage. (Serveur Windows uniquement)
Avec cette option de Windows Server 2016, applicable uniquement aux serveurs SKU, les administrateurs locaux sont autorisés à utiliser Windows Update pour réaliser manuellement des installations ou des redémarrages.
Si l’état de cette stratégie est Désactivée, les mises à jour disponibles sur Windows Update doivent être téléchargées et installées manuellement. Pour cela, vous devez rechercher Windows Update par le biais de l’écran de démarrage.
Si l’état est Non configurée, l’utilisation des Mises à jour automatiques n’est pas spécifié au niveau de la stratégie de groupe. Cependant, un administrateur peut toujours configurer des mises à jour automatiques via le panneau de configuration.
Use cases
On a WSUS-managed fleet this is the setting that drives client behaviour: option 4 (auto download and schedule the install, 3:00 AM by default) suits workstations, option 5 lets the local admin choose, and option 7 (notify for install and notify for restart) is for Windows Server 2016 and later.
Beware that on Windows Server the effective default is option 3 even though the GPO shows Not Configured. If you manage updates with Windows Update for Business instead of WSUS, Microsoft recommends leaving this setting disabled (or at 4 if you must set it).
Microsoft sources: Step 4: Configure Group Policy settings for automatic updates · Update policies
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU- Value name
NoAutoUpdate
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_DWORD = 1 |
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/AutoUpdateCfg
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoAutoUpdate' -Value 0 -Type DWord
# Configure automatic updating
# Possible options:
# 2 - Notify for download and auto install = 2
# 3 - Auto download and notify for install = 3
# 4 - Auto download and schedule the install = 4
# 5 - Allow local admin to choose setting = 5
# 7 - Auto Download, Notify to install, Notify to Restart = 7
Set-ItemProperty -Path $k -Name 'AUOptions' -Value 3 -Type DWord
# Install during automatic maintenance
# 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 'AutomaticMaintenanceEnabled' -Value 0 -Type DWord
# Scheduled install day
# Possible options:
# 0 - Every day = 0
# 1 - Every Sunday = 1
# 2 - Every Monday = 2
# 3 - Every Tuesday = 3
# 4 - Every Wednesday = 4
# 5 - Every Thursday = 5
# 6 - Every Friday = 6
# 7 - Every Saturday = 7
Set-ItemProperty -Path $k -Name 'ScheduledInstallDay' -Value 0 -Type DWord
# Scheduled install time
# Possible options:
# Automatic = 24; 00:00 = 0; 01:00 = 1; 02:00 = 2; 03:00 = 3; 04:00 = 4; 05:00 = 5; 06:00 = 6
# 07:00 = 7; 08:00 = 8; 09:00 = 9; 10:00 = 10; 11:00 = 11; 12:00 = 12; 13:00 = 13; 14:00 = 14
# 15:00 = 15; 16:00 = 16; 17:00 = 17; 18:00 = 18; 19:00 = 19; 20:00 = 20; 21:00 = 21; 22:00 = 22
# 23:00 = 23
Set-ItemProperty -Path $k -Name 'ScheduledInstallTime' -Value 2 -Type DWord
# Install updates for other Microsoft products
Set-ItemProperty -Path $k -Name 'AllowMUUpdateService' -Value 0 -Type DWord # value not defined in the ADMX; 1 = checked, 0 = unchecked
# Every week
Set-ItemProperty -Path $k -Name 'ScheduledInstallEveryWeek' -Value 1 -Type DWord # value not defined in the ADMX; 1 = checked, 0 = unchecked
# First week of the month
Set-ItemProperty -Path $k -Name 'ScheduledInstallFirstWeek' -Value 0 -Type DWord # value not defined in the ADMX; 1 = checked, 0 = unchecked
# Second week of the month
Set-ItemProperty -Path $k -Name 'ScheduledInstallSecondWeek' -Value 0 -Type DWord # value not defined in the ADMX; 1 = checked, 0 = unchecked
# Third week of the month
Set-ItemProperty -Path $k -Name 'ScheduledInstallThirdWeek' -Value 0 -Type DWord # value not defined in the ADMX; 1 = checked, 0 = unchecked
# Fourth week of the month
Set-ItemProperty -Path $k -Name 'ScheduledInstallFourthWeek' -Value 0 -Type DWord # value not defined in the ADMX; 1 = checked, 0 = uncheckedDisable
# Disable: WindowsUpdate/AutoUpdateCfg
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoAutoUpdate' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsUpdate/AutoUpdateCfg
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
Remove-ItemProperty -Path $k -Name 'NoAutoUpdate' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AUOptions' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AutomaticMaintenanceEnabled' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ScheduledInstallDay' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ScheduledInstallTime' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AllowMUUpdateService' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ScheduledInstallEveryWeek' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ScheduledInstallFirstWeek' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ScheduledInstallSecondWeek' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ScheduledInstallThirdWeek' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ScheduledInstallFourthWeek' -ErrorAction SilentlyContinueOptions (10)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Configure automatic updating:Configuration de la mise à jour automatique :AutoUpdateMode | Drop-down listenum | AUOptions | REG_DWORD | Required · Default choice (UI): #1
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Install during automatic maintenanceInstaller durant la maintenance automatiqueAutoUpdateAutomaticMaintenanceEnabled | Check boxboolean | AutomaticMaintenanceEnabled | REG_DWORD | Default (UI): false Checked: implicit: 1Unchecked: implicit: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Scheduled install day:Jour de l’installation planifiée :AutoUpdateSchDay | Drop-down listenum | ScheduledInstallDay | REG_DWORD | Required · Default choice (UI): #0
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Scheduled install time:Heure de l’installation planifiée :AutoUpdateSchTime | Drop-down listenum | ScheduledInstallTime | REG_DWORD | Required · Default choice (UI): #3
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Install updates for other Microsoft productsInstaller les mises à jour d’autres produits MicrosoftAllowMUUpdateServiceId | Check boxboolean | AllowMUUpdateService | REG_DWORD | Default (UI): false Checked: implicit: 1Unchecked: implicit: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Every weekChaque semaineAutoUpdateSchEveryWeek | Check boxboolean | ScheduledInstallEveryWeek | REG_DWORD | Default (UI): true Checked: implicit: 1Unchecked: implicit: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| First week of the monthPremière semaine du moisAutoUpdateSchFirstWeek | Check boxboolean | ScheduledInstallFirstWeek | REG_DWORD | Default (UI): false Checked: implicit: 1Unchecked: implicit: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Second week of the monthDeuxième semaine du moisAutoUpdateSchSecondWeek | Check boxboolean | ScheduledInstallSecondWeek | REG_DWORD | Default (UI): false Checked: implicit: 1Unchecked: implicit: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Third week of the monthTroisième semaine du moisAutoUpdateSchThirdWeek | Check boxboolean | ScheduledInstallThirdWeek | REG_DWORD | Default (UI): false Checked: implicit: 1Unchecked: implicit: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Fourth week of the monthQuatrième semaine du moisAutoUpdateSchFourthWeek | Check boxboolean | ScheduledInstallFourthWeek | REG_DWORD | Default (UI): false Checked: implicit: 1Unchecked: implicit: 0 |