Open in the explorer

Set Priority in the DC Locator DNS SRV records

Définir la priorité dans les enregistrements DNS SRV du localisateur de contrôleurs de domaine

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Net Logon › DC Locator DNS Records FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Net Logon › Enregistrements DNS du localisateur de contrôleurs de domaine
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_LdapSrvPriority

Explanation

This policy setting specifies the Priority field in the SRV resource records registered by domain controllers (DC) to which this setting is applied. These DNS records are dynamically registered by the Net Logon service and are used to locate the DC.

The Priority field in the SRV record sets the preference for target hosts (specified in the SRV record’s Target field). DNS clients that query for SRV resource records attempt to contact the first reachable host with the lowest priority number listed.

To specify the Priority in the DC Locator DNS SRV resource records, click Enabled, and then enter a value. The range of values is from 0 to 65535.

If you do not configure this policy setting, it is not applied to any DCs, and DCs use their local configuration.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie le champ Priorité dans les enregistrements de ressources SRV inscrits par les contrôleurs de domaine auxquels ce paramètre est appliqué. Ces enregistrements DNS sont inscrits dynamiquement par le service Net Logon et sont utilisés pour trouver le contrôleur de domaine.

Le champ Priorité de l’enregistrement SRV définit la préférence des hôtes de destination (spécifiés dans le champ Destination de l’enregistrement SRV). Les clients DNS qui demandent des enregistrements de ressources SRV tentent de contacter le premier hôte joignable avec le numéro de priorité le plus bas répertorié.

Pour spécifier la priorité dans les enregistrements de ressources DNS SRV du localisateur de contrôleurs de domaine, cliquez sur Activer et entrez une valeur. La plage des valeurs est comprise entre 0 et 65 535.

Si vous ne configurez pas ce paramètre de stratégie, il n’est appliqué à aucun contrôleur de domaine et les contrôleurs de domaine utilisent leur configuration locale.

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_LdapSrvPriority
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Priority
Set-ItemProperty -Path $k -Name 'LdapSrvPriority' -Value 0 -Type DWord  # maximum 65535

Disable

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

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Priority:Priorité :Netlogon_LdapSrvPriorityLabelNumeric boxdecimalLdapSrvPriorityREG_DWORD
Max: 65535 · Default (UI): 0

Availability