WHFB PIN Complexity Setting via Registry Key
Below is the registry key path that shows the location of the settings: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PassportForWork\PINComplexity
If the directory does not exist, we manually create the REG_DWORD value to meet the requirements:
The following chart can be used as a reference for the values (Unconfigured values will be set as the default):
Value Name | Value Type | Min Value | Max Value | Notes |
Expiration | REG_DWORD | 0 | 730 | |
History | REG_DWORD | 0 | 50 | 1 stands for Enable, 2 stands for Disable |
Digits | REG_DWORD | 1 | 2 | |
SpecialCharacters | REG_DWORD | 1 | 2 | |
LowercaseLetters | REG_DWORD | 1 | 2 | |
UppercaseLetters | REG_DWORD | 1 | 2 | |
MaximumPINLength | REG_DWORD | 4 | 127 | The Maximum Allowed PIN Length |
MinimumPINLength | REG_DWORD | 4 | 127 | The Minimum Allowed PIN Length |