Maximum PIN length
- Policy ID
- MSPassport_MaximumPINLength
- Scope
- Computer Configuration
- Supported on
- At least Windows 10
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- System › PIN Complexity
Description
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.
Options
Registry
ComputerHKEY_LOCAL_MACHINE
- MaximumPINLengthREG_DWORD