Automatic Updates detection frequency
Fréquence de détection des mises à jour automatiques
Explanation
Specifies the hours that Windows will use to determine how long to wait before checking for available updates. The exact wait time is a sum of the specific value and a random variant of 0-4 hours.
If the status is set to Enabled, Windows will check for available updates at the specified interval.
If the status is set to Disabled or Not Configured, Windows will check for available updates at the default interval of 22 hours.
Note: The "Specify intranet Microsoft update service location" setting must be enabled for this policy to have effect.
Note: If the "Configure Automatic Updates" policy is disabled, this policy has no effect.
Note: This policy is not supported on Windows RT. Setting this policy will not have any effect on Windows RT PCs.
Spécifie la durée en heures pendant laquelle Windows attendra avant de vérifier la disponibilité de nouvelles mises à jour. La durée exacte correspond à la somme de la valeur spécifique et d'une variante aléatoire comprise entre 0 et 4 heures.
Si l’état Activé est sélectionné, Windows vérifiera la disponibilité des mises à jour à l’intervalle spécifié.
Si l’état Désactivé ou Non configuré est sélectionné, Windows vérifiera la disponibilité des mises à jour à l’intervalle par défaut de 22 heures.
Remarque : le paramètre « Spécifier l’emplacement intranet du service de Mise à jour Microsoft » doit être activé pour que cette stratégie prenne effet.
Remarque : si la stratégie « Configuration du service Mises à jour automatiques » est désactivée, cette stratégie n’a aucun effet.
Remarque : cette stratégie n’est pas prise en charge sur Windows RT. La définition de cette stratégie n’aura aucun effet sur les ordinateurs Windows RT.
Use cases
Sets how often clients poll WSUS (22 hours by default; the client waits 80 to 100% of the configured value to spread the load). Lower it to detect urgent patches sooner, raise it to relieve an overloaded WSUS server.
It only has an effect if the intranet update service location is enabled.
Microsoft source: Step 4: Configure Group Policy settings for automatic updates
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU- Value name
DetectionFrequencyEnabled
| 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/DetectionFrequency_Title
$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 'DetectionFrequencyEnabled' -Value 1 -Type DWord
# interval (hours)
Set-ItemProperty -Path $k -Name 'DetectionFrequency' -Value 22 -Type DWord # between 1 and 22Disable
# Disable: WindowsUpdate/DetectionFrequency_Title
$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 'DetectionFrequencyEnabled' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsUpdate/DetectionFrequency_Title
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
Remove-ItemProperty -Path $k -Name 'DetectionFrequencyEnabled' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DetectionFrequency' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| interval (hours):l’intervalle suivant (heures) :DetectionFrequency_Hour2 | Numeric boxdecimal | DetectionFrequency | REG_DWORD | Required · Min: 1 · Max: 22 · Default (UI): 22 |