Use positive periodic DC cache refresh for background callers
Utiliser l’intervalle d’actualisation du cache de contrôleur de domaine périodique positif pour les appelants en arrière plan
Explanation
This policy setting determines when a successful DC cache entry is refreshed. This policy setting is applied to caller programs that periodically attempt to locate DCs, and it is applied before returning the DC information to the caller program. The default value for this setting is infinite (4294967200). The maximum value for this setting is (4294967200), while the maximum that is not treated as infinity is 49 days (49*24*60*60=4233600). Any larger value is treated as infinity. The minimum value for this setting is to always refresh (0).
Ce paramètre de stratégie détermine lorsqu’une entrée de cache réussie de contrôleur de domaine est actualisée. Ce paramètre de stratégie est appliqué aux programmes appelants qui tentent périodiquement de trouver des contrôleurs de domaine, et il est appliqué avant de renvoyer les informations du contrôleur de domaine au programme appelant. La valeur par défaut pour ce paramètre est infinie (4 294 967 200). La valeur maximale pour ce paramètre est (4 294 967 200), tandis que le maximum qui n’est pas considéré comme étant infini est 49 jours (49*24*60*60=4 233 600). Toute valeur supérieure est considérée comme étant infinie. La valeur minimale pour ce paramètre est de toujours actualiser (0).
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Netlogon\Parameters- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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: Netlogon/Netlogon_BackgroundSuccessfulRefreshPeriod
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Seconds
Set-ItemProperty -Path $k -Name 'BackgroundSuccessfulRefreshPeriod' -Value 0xFFFFFFA0 -Type DWord # maximum 4294967200 ; 4294967200, unsigned 32-bit valueDisable
# Disable: Netlogon/Netlogon_BackgroundSuccessfulRefreshPeriod
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Netlogon/Netlogon_BackgroundSuccessfulRefreshPeriod
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
Remove-ItemProperty -Path $k -Name 'BackgroundSuccessfulRefreshPeriod' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Seconds:Secondes :Netlogon_BackgroundSuccessfulRefreshPeriodLabel | Numeric boxdecimal | BackgroundSuccessfulRefreshPeriod | REG_DWORD | Max: 4294967200 · Default (UI): 4294967200 |