Policy
Maximum PIN length
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows10, Windows10RT
Maximum PIN length configures the maximum number of characters allowed for the PIN. The largest number you can configure for this policy setting is 127. The lowest number you can configure must be larger than the number configured in the Minimum PIN length policy setting or the number 4, whichever is greater. If you configure this policy setting, the PIN length must be less than or equal to this number. If you disable or do not configure this policy setting, the PIN length must be less than or equal to 127. NOTE: If the above specified conditions for the maximum PIN length are not met, default values will be used for both the maximum and minimum PIN lengths.
Registry values
How enabled and disabled states update the registry.
No explicit registry values are set for enabled or disabled states.
Policy elements
Inputs and configuration options exposed by this policy.
| Element | Type | Registry mapping | Constraints & behavior |
|---|---|---|---|
Maximum PIN length ID MSPassport_MaximumPINLengthDataType | decimal | HKLM\SOFTWARE\Policies\Microsoft\PassportForWork\PINComplexity\MaximumPINLength Type REG_DWORD | Range: 4 to 127 |
Other policies in this category
Explore related policies at the same level.
- ComputerExpirationAt least Windows 10
- ComputerHistoryAt least Windows 10
- ComputerMinimum PIN lengthAt least Windows 10
- ComputerRequire digitsAt least Windows 10
- ComputerRequire lowercase lettersAt least Windows 10
- ComputerRequire special charactersAt least Windows 10
- ComputerRequire uppercase lettersAt least Windows 10