By default, Windows PINs are limited to 127 characters.
A complex PIN can help improve gadget security.
However, some users reported that they were unable to change to a PIN longer than 4 digits.
![]()
This may be because the computer is set with a PIN maximum character limit.
Now, we are going to walk you through how to change the maximum PIN length in Windows 10/11.
This definitive tutorial shows you how to bypass a forgotten PIN Windows 10 by using the Command Prompt tool.

PressWindows + Rkey combination to bring up the Run dialog box.
In the input box, typeregeditand pressEnteror clickOK.
In the UAC window, selectYes.

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft
Step 5. peek if there is aPassportForWorksubkey underMicrosoft.
If not, right-click theMicrosoftkey to selectNew>Key.
Name the newly created key toPassportForWork.
![]()
Right-clickPassportForWorkto selectNew>Key.
Name the new key toPINComplexity.
Right-click thePINComplexitykey to selectNew>DWORD (32-bit) Value.

Name the DWORD value toMaximumPINLength.
Double-hit the newly createdMaximumPINLengthDWORD value.
In the pop-up window, select theDecimaloption.

Then set the maximum character limit for your PIN code.
After that, clickOK.
Similarly, you’re free to create another DWORD valueMinimumPINLengthto set the PIN minimum length.
![]()
Cannot key in password on the login screen?
PressWindows + Rkeyboard shortcut to open Run.
Computer Configuration\Administrative Templates\System\PIN Complexity
Step 4.
In the right panel, double-clickMaximum PIN length.
Also, you’re free to select theEnabledoption and set up the desired maximum PIN length.
Likewise, you’ve got the option to double-click theMinimum PIN lengthpolicy to configure the minimum PIN length.
Want to disable security questions for local accounts but do not know how?
Now read this post to remove security questions in Windows 10/11.