Open in the explorer

Set Weight in the DC Locator DNS SRV records

Définir le poids 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_LdapSrvWeight

Explanation

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

The Weight field in the SRV record can be used in addition to the Priority value to provide a load-balancing mechanism where multiple servers are specified in the SRV records Target field and are all set to the same priority. The probability with which the DNS client randomly selects the target host to be contacted is proportional to the Weight field value in the SRV record.

To specify the Weight in the DC Locator DNS SRV 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 Poids 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 Poids de l’enregistrement SRV peut être utilisé en plus de la valeur Priorité pour fournir un mécanisme d’équilibrage de charge où plusieurs serveurs sont spécifiés dans le champ Destination des enregistrements SRV et où ils possèdent tous la même priorité. La probabilité selon laquelle le client DNS sélectionne aléatoirement l’hôte de destination à contacter est proportionnelle à la valeur du champ Poids de l’enregistrement SRV.

Pour spécifier le poids dans les enregistrements DNS SRV du localisateur de contrôleurs de domaine, sélectionnez 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_LdapSrvWeight
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Weight
Set-ItemProperty -Path $k -Name 'LdapSrvWeight' -Value 100 -Type DWord  # maximum 65535

Disable

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

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Weight:Poids :Netlogon_LdapSrvWeightLabelNumeric boxdecimalLdapSrvWeightREG_DWORD
Max: 65535 · Default (UI): 100

Availability