Open in the explorer

Create new Group Policy Object links disabled by default

Créer de nouveaux liens d’objets de stratégie de groupe désactivés par défaut

Type
User
GPO path
User Configuration › Policies › Administrative Templates › System › Group Policy FR: Configuration utilisateur › Stratégies › Modèles d'administration › Système › Stratégie de groupe
Supported on
At least Windows 2000 FR: Au minimum Windows 2000
ADMX file
GroupPolicy.admx
Internal name
GroupPolicy/NewGPOLinksDisabled

Explanation

This policy setting allows you to create new Group Policy object links in the disabled state.

If you enable this setting, you can create all new Group Policy object links in the disabled state by default. After you configure and test the new object links by using a policy compliant Group Policy management tool such as Active Directory Users and Computers or Active Directory Sites and Services, you can enable the object links for use on the system.

If you disable this setting or do not configure it, new Group Policy object links are created in the enabled state. If you do not want them to be effective until they are configured and tested, you must disable the object link.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de créer des liens vers des objets de stratégie de groupe dans l’état désactivé.

Si vous activez ce paramètre, vous pouvez créer tous les liens vers des objets de stratégie de groupe dans l’état désactivé par défaut. Après avoir configuré et testé les nouveaux liens vers les objets avec un outil de gestion de stratégie de groupe compatible avec la stratégie tel que le composant Utilisateurs et ordinateurs Active Directory ou le composant Sites et services Active Directory, vous pouvez activer les liens vers les objets pour les utiliser sur le système.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, de nouveaux liens vers des objets de stratégie de groupe sont créés dans un état activé. Si vous ne souhaitez les voir appliqués qu’une fois la configuration et les tests effectués, vous devez désactiver le lien vers l’objet.

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Group Policy Editor
Value name
NewGPOLinksDisabled
StateValue written
Enablednot defined in the ADMX
Disablednot defined in the ADMX

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

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/NewGPOLinksDisabled
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Group Policy Editor'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NewGPOLinksDisabled' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: GroupPolicy/NewGPOLinksDisabled
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Group Policy Editor'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NewGPOLinksDisabled' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": GroupPolicy/NewGPOLinksDisabled
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Group Policy Editor'
Remove-ItemProperty -Path $k -Name 'NewGPOLinksDisabled' -ErrorAction SilentlyContinue

Availability