Open in the explorer

Specify negative DC Discovery cache setting

Spécifier le paramètre du cache de la découverte de contrôleurs de domaine négatif

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Net Logon FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Net Logon
Supported on
At least Windows Server 2003 operating systems or Windows XP Professional FR: Au minimum Windows Server 2003 ou Windows XP Professionnel
ADMX file
Netlogon.admx
Internal name
Netlogon/Netlogon_NegativeCachePeriod

Explanation

This policy setting specifies the amount of time (in seconds) the DC locator remembers that a domain controller (DC) could not be found in a domain. When a subsequent attempt to locate the DC occurs within the time set in this setting, DC Discovery immediately fails, without attempting to find the DC.

The default value for this setting is 45 seconds. The maximum value for this setting is 7 days (7*24*60*60). The minimum value for this setting is 0.

Warning: If the value for this setting is too large, a client will not attempt to find any DCs that were initially unavailable. If the value for this setting is too small, clients will attempt to find DCs even when none are available.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie la durée (en secondes) pendant laquelle le localisateur de contrôleurs de domaine doit mémoriser qu’un contrôleur de domaine est introuvable dans un domaine. Lorsqu’une nouvelle tentative pour trouver le contrôleur de domaine se produit pendant la durée définie dans ce paramètre, la découverte de contrôleurs de domaine échoue immédiatement sans qu’aucune recherche du contrôleur de domaine ne soit tentée.

La valeur par défaut pour ce paramètre est 45 secondes. La valeur maximale pour ce paramètre est 7 jours (7*24*60*60). La valeur minimale pour ce paramètre est 0.

Avertissement : si la valeur pour ce paramètre est trop importante, le client ne tente pas de trouver des contrôleurs de domaine qui étaient initialement indisponibles. Si la valeur pour ce paramètre est trop faible, les clients tenteront de trouver des contrôleurs de domaine, même si aucun n’est disponible.

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_NegativeCachePeriod
$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 'NegativeCachePeriod' -Value 45 -Type DWord  # maximum 604800

Disable

# Disable: Netlogon/Netlogon_NegativeCachePeriod
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Netlogon/Netlogon_NegativeCachePeriod
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
Remove-ItemProperty -Path $k -Name 'NegativeCachePeriod' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Seconds:Secondes :Netlogon_NegativeCachePeriodLabelNumeric boxdecimalNegativeCachePeriodREG_DWORD
Max: 604800 · Default (UI): 45

Availability