Set default name for new Group Policy objects
Définir le nom par défaut pour les objets de stratégie de groupe
Explanation
This policy setting allows you to set the default display name for new Group Policy objects.
This setting allows you to specify the default name for new Group Policy objects created from policy compliant Group Policy Management tools including the Group Policy tab in Active Directory tools and the GPO browser.
The display name can contain environment variables and can be a maximum of 255 characters long.
If this setting is Disabled or Not Configured, the default display name of New Group Policy object is used.
Ce paramètre de stratégie vous permet de définir le nom complet par défaut des nouveaux objets de stratégie de groupe.
Ce paramètre de stratégie vous permet de spécifier le nom par défaut des nouveaux objets de stratégie de groupe créés à partir des outils compatibles de gestion de stratégie de groupe, incluant l’onglet Stratégie de groupe dans les outils Active Directory et le navigateur des objets de stratégie de groupe.
Le nom complet peut contenir des variables d’environnement et peut comporter jusqu’à 255 caractères maximum.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, le nom complet par défaut de l’objet de stratégie de groupe est utilisé.
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/NewGPODisplayName
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Group Policy Editor'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# GPO Name
Set-ItemProperty -Path $k -Name 'GPODisplayName' -Value '<value>' -Type StringDisable
# Disable: GroupPolicy/NewGPODisplayName
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": GroupPolicy/NewGPODisplayName
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Group Policy Editor'
Remove-ItemProperty -Path $k -Name 'GPODisplayName' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| GPO Name:Nom d’objet de stratégie de groupe :NewGPODisplayNameHeading | Text boxtext | GPODisplayName | REG_SZ | Required · Max length: 255 |