Open in the explorer

Require digits

Exiger des chiffres

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › PIN Complexity FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Complexité du code confidentiel
Supported on
At least Windows 10 FR: Au minimum Windows 10
ADMX file
Passport.admx
Internal name
Passport/MSPassport_Digits

Explanation

Use this policy setting to configure the use of digits in the PIN.

If you enable this policy setting, Windows requires the user to include at least one digit in their PIN.

If you disable this policy setting, Windows does not allow the user to include digits in their PINs.

If you do not configure this policy setting, Windows allows, but does not require, digits in the PIN.

French text from Windows 11 26H2

Utilisez ce paramètre de stratégie pour configurer l'utilisation de chiffres dans le code PIN.

Si vous activez ce paramètre de stratégie, Windows exige de l'utilisateur qu'il utilise au moins un chiffre dans son code confidentiel.

Si vous désactivez ce paramètre de stratégie, Windows ne permet pas à l'utilisateur d'ajouter des chiffres dans ses codes PIN.

Si vous ne configurez pas ce paramètre de stratégie, Windows autorise, sans les exiger, les chiffres dans le code confidentiel.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PassportForWork\PINComplexity
Value name
Digits
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 2

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: Passport/MSPassport_Digits
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\PassportForWork\PINComplexity'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Digits' -Value 1 -Type DWord

Disable

# Disable: Passport/MSPassport_Digits
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\PassportForWork\PINComplexity'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Digits' -Value 2 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Passport/MSPassport_Digits
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\PassportForWork\PINComplexity'
Remove-ItemProperty -Path $k -Name 'Digits' -ErrorAction SilentlyContinue

Availability