Open in the explorer

Minimum PIN length

Longueur minimale du code PIN

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_MinimumPINLength

Explanation

Minimum PIN length configures the minimum number of characters required for the PIN. The lowest number you can configure for this policy setting is 4. The largest number you can configure must be less than the number configured in the Maximum PIN length policy setting or the number 127, whichever is the lowest.

If you configure this policy setting, the PIN length must be greater than or equal to this number.

If you disable or do not configure this policy setting, the PIN length must be greater than or equal to 6.

NOTE: If the above specified conditions for the minimum PIN length are not met, default values will be used for both the maximum and minimum PIN lengths.

French text from Windows 11 26H2

La longueur minimale du code confidentiel configure le nombre minimal de caractères requis pour le code PIN. Le nombre le plus faible que vous pouvez configurer pour ce paramètre de stratégie est 4. Le plus grand nombre que vous pouvez configurer doit être inférieur au nombre configuré dans le paramètre de stratégie Longueur maximale du code confidentiel ou au nombre 127, selon la valeur la plus faible.

Si vous configurez ce paramètre de stratégie, la longueur du code confidentiel doit être supérieure ou égale à ce nombre.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, la longueur du code confidentiel doit être supérieure ou égale à 6.

REMARQUE : si les conditions spécifiées ci-dessus pour la longueur minimale du code confidentiel ne sont pas remplies, les valeurs par défaut sont utilisées pour les longueurs maximale et minimale du code confidentiel.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PassportForWork\PINComplexity
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: Passport/MSPassport_MinimumPINLength
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\PassportForWork\PINComplexity'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Minimum PIN length
Set-ItemProperty -Path $k -Name 'MinimumPINLength' -Value 4 -Type DWord  # between 4 and 127

Disable

# Disable: Passport/MSPassport_MinimumPINLength
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Minimum PIN lengthLongueur minimale du code PINMSPassport_MinimumPINLengthDataTypeNumeric boxdecimalMinimumPINLengthREG_DWORD
Min: 4 · Max: 127

Availability