Open in the explorer

Disable password strength validation for Peer Grouping

Désactiver la validation de la longueur du mot de passe pour le groupement de pairs

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › Microsoft Peer-to-Peer Networking Services FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Activer les services réseau pair à pair Microsoft
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
p2p-pnrp.admx
Internal name
p2p-pnrp/GROUPING_DisablePasswordPolicyEnforcement

Explanation

By default, when a Peer Group is created that allows for password-authentication (or the password for such a Group is changed), Peer Grouping validates that the password meets the password complexity requirements for the local system. Thus, it will not allow any passwords to be used for a Peer Group that are weaker than what would be allowed for a login password.

This setting controls this validation behavior. If set to 1, then this validation will not be performed and any password will be allowed. If set to 0, the validation will be performed.

French text from Windows 11 26H2

Par défaut, lorsqu’un groupe de pairs est créé et que ce dernier permet l’authentification par mot de passe (ou la modification du mot de passe de ce groupe), le groupement de pairs valide le mot de passe conforme aux conventions de complexité requises pour le système local. En outre, cela empêche l’utilisation de mots de passe de groupement de pairs moins forts qu’un mot de passe d’ouverture de session.

Ce paramètre contrôle ce comportement de validation. Si la valeur de ce paramètre est 1, la validation n’est pas effectuée et tous les mots de passe sont autorisés. Si la valeur de ce paramètre est 0, la validation est effectuée.

Registry

HKEY_LOCAL_MACHINE\Software\policies\Microsoft\Peernet
Value name
IgnoreDomainPasswordPolicyForNewGroups
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

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: p2p-pnrp/GROUPING_DisablePasswordPolicyEnforcement
$k = 'HKLM:\Software\policies\Microsoft\Peernet'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'IgnoreDomainPasswordPolicyForNewGroups' -Value 1 -Type DWord

Disable

# Disable: p2p-pnrp/GROUPING_DisablePasswordPolicyEnforcement
$k = 'HKLM:\Software\policies\Microsoft\Peernet'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'IgnoreDomainPasswordPolicyForNewGroups' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": p2p-pnrp/GROUPING_DisablePasswordPolicyEnforcement
$k = 'HKLM:\Software\policies\Microsoft\Peernet'
Remove-ItemProperty -Path $k -Name 'IgnoreDomainPasswordPolicyForNewGroups' -ErrorAction SilentlyContinue

Availability