Configure Group Policy domain controller selection
Configurer la sélection du contrôleur de domaine de la stratégie de groupe
Explanation
This policy setting determines which domain controller the Group Policy Object Editor snap-in uses.
If you enable this setting, you can which domain controller is used according to these options:
"Use the Primary Domain Controller" indicates that the Group Policy Object Editor snap-in reads and writes changes to the domain controller designated as the PDC Operations Master for the domain.
"Inherit from Active Directory Snap-ins" indicates that the Group Policy Object Editor snap-in reads and writes changes to the domain controller that Active Directory Users and Computers or Active Directory Sites and Services snap-ins use.
"Use any available domain controller" indicates that the Group Policy Object Editor snap-in can read and write changes to any available domain controller.
If you disable this setting or do not configure it, the Group Policy Object Editor snap-in uses the domain controller designated as the PDC Operations Master for the domain.
Note: To change the PDC Operations Master for a domain, in Active Directory Users and Computers, right-click a domain, and then click "Operations Masters."
Ce paramètre de stratégie détermine le contrôleur de domaine utilisé par le composant logiciel enfichable Éditeur d’objets de stratégie de groupe.
Si vous activez ce paramètre de stratégie, vous pouvez déterminer quel est le contrôleur de domaine utilisé en fonction des options suivantes :
« Utiliser le contrôleur principal de domaine » indique que l’Éditeur d’objets de stratégie de groupe lit et écrit les modifications dans le contrôleur de domaine désigné en tant que maître d’opérations de contrôleur de domaine principal pour le domaine.
« Hériter des composants Active Directory » indique que l’Éditeur d’objets de stratégie de groupe lit et écrit les modifications dans le contrôleur de domaine utilisé par les composants logiciels enfichables Utilisateurs et ordinateurs Active Directory ou Sites et services Active Directory.
« Utiliser tout contrôleur de domaine disponible » indique que l’Éditeur d’objets de stratégie de groupe peut lire et écrire les modifications dans tout contrôleur de domaine disponible.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’Éditeur d’objets de stratégie de groupe utilise le contrôleur de domaine désigné comme maître d’opérations de contrôleur de domaine principal pour le domaine.
Remarque : pour changer de maître d’opérations de contrôleur de domaine principal pour un domaine, cliquez sur un domaine avec le bouton droit dans Utilisateurs et ordinateurs Active Directory, puis cliquez sur « Maîtres d’opérations ».
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Group Policy Editor- 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: GroupPolicy/GPDCOptions
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Group Policy Editor'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# When Group Policy Object Editor is selecting a domain controller to use, it should
# Possible options:
# Use the Primary Domain Controller = 1
# Inherit from Active Directory Snap-ins = 2
# Use any available domain controller = 3
Set-ItemProperty -Path $k -Name 'DCOption' -Value 1 -Type DWordDisable
# Disable: GroupPolicy/GPDCOptions
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": GroupPolicy/GPDCOptions
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Group Policy Editor'
Remove-ItemProperty -Path $k -Name 'DCOption' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| When Group Policy Object Editor is selecting a domain controller to use, it should:Lorsque l’Éditeur d’objets de stratégie de groupe sélectionne un contrôleur de domaine à utiliser, il doit :GPDCOptionsDesc | Drop-down listenum | DCOption | REG_DWORD | Default choice (UI): #0
|