Specify site name
Spécifier le nom du site
Explanation
This policy setting specifies the Active Directory site to which computers belong.
An Active Directory site is one or more well-connected TCP/IP subnets that allow administrators to configure Active Directory access and replication.
To specify the site name for this setting, click Enabled, and then enter the site name. When the site to which a computer belongs is not specified, the computer automatically discovers its site from Active Directory.
If you do not configure this policy setting, it is not applied to any computers, and computers use their local configuration.
Ce paramètre de stratégie spécifie le site Active Directory auquel les ordinateurs appartiennent.
Un site Active Directory est constitué d’un ou de plusieurs sous-réseaux TCP/IP disposant de connexions rapides qui autorisent les administrateurs à configurer l’accès et la réplication Active Directory.
Pour spécifier le nom de site pour ce paramètre, cliquez sur Activer et entrez le nom du site. Lorsque le site auquel un ordinateur appartient n’est pas spécifié, l’ordinateur découvre automatiquement son site à partir d’Active Directory.
Si vous ne configurez pas ce paramètre de stratégie, il n’est appliqué à aucun ordinateur et les ordinateurs 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_SiteName
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Site
Set-ItemProperty -Path $k -Name 'SiteName' -Value '<value>' -Type StringDisable
# Disable: Netlogon/Netlogon_SiteName
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Netlogon/Netlogon_SiteName
$k = 'HKLM:\Software\Policies\Microsoft\Netlogon\Parameters'
Remove-ItemProperty -Path $k -Name 'SiteName' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Site:Site :Netlogon_SiteNameLabel | Text boxtext | SiteName | REG_SZ | Required |