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 NameValue TypeMin ValueMax ValueNotes
ExpirationREG_DWORD0730 
HistoryREG_DWORD0501 stands for Enable, 2 stands for Disable
DigitsREG_DWORD12 
SpecialCharactersREG_DWORD12 
LowercaseLettersREG_DWORD12 
UppercaseLettersREG_DWORD12 
MaximumPINLengthREG_DWORD4127The Maximum Allowed PIN Length 
MinimumPINLengthREG_DWORD4127The Minimum Allowed PIN Length