Constrained by the character length of the Windows PIN? How to extend the PIN length in Windows 10/11? In this post from MiniTool, we will show you how to change the maximum PIN length by using Registry Editor and Local Group Policy Editor.

Overview of Windows PIN Length

A PIN is a string of characters (usually pure numbers) that you set to log in to your Windows device quickly and securely. By default, Windows PINs are limited to 127 characters.

A complex PIN can help improve device 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.

[Full Solutions] PIN Is Not Working on Windows 10/11
[Full Solutions] PIN Is Not Working on Windows 10/11

If Windows PIN is not working on your computer, do you know how to fix it? In this post, we will show you some easy and effective solutions.

Read More

How to Extend the PIN Length Windows 10/11

Way 1. How to Extend the PIN Length Using Windows Registry Editor

The first way to change the maximum PIN length is to tweak the Windows registry.

Note:
Before performing any operations on the Windows registry, it is highly recommended to back up the entire registry, or you may choose to back up individual registries. This is because improper operation of the registry is likely to affect the operation of the computer.

The major steps to change the maximum PIN length with Registry Editor:

Step 1. Press Windows + R key combination to open the Run dialog box.

Step 2. In the input box, type regedit and press Enter or click OK.

Step 3. In the UAC window, select Yes. If the Yes button is grayed out, check this post for solutions: How to Fix UAC Yes Button Missing or Grayed Out.

Step 4. In the Registry Editor window, navigate to the following location:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft

Step 5. Check if there is a PassportForWork subkey under Microsoft. If not, right-click the Microsoft key to select New > Key. Name the newly created key to PassportForWork.

create a new key

Step 6. Right-click PassportForWork to select New > Key. Name the new key to PINComplexity.

Step 7. Right-click the PINComplexity key to select New > DWORD (32-bit) Value. Name the DWORD value to MaximumPINLength.

Step 8. Double-click the newly created MaximumPINLength DWORD value. In the pop-up window, select the Decimal option.

Then set the maximum character limit for your PIN code. For example, if you want your PIN to be no more than 20 characters, just fill in 20 in the input box. After that, click OK.

set up the value data

Similarly, you can create another DWORD value MinimumPINLength to set the PIN minimum length.

Step 9. Exit Registry Editor, restart your computer, and try to reset your PIN.

Cannot Type Password on the Login Screen? See Best Fixes Here
Cannot Type Password on the Login Screen? See Best Fixes Here

Cannot type password on the login screen? Read this post to see why you are unable to type password at the login screen Windows 7/8/10/11 and how to fix it.

Read More

Way 2. How to Extend the PIN Length Using Local Group Policy Editor

In addition to Registry Editor, you can extend the PIN length by using Local Group Policy Editor.

Step 1. Press Windows + R keyboard shortcut to open Run.

Step 2. Type gpedit.msc and press Enter.

Step 3. In the Local Group Policy Editor window, navigate to the following path:

Computer Configuration\Administrative Templates\System\PIN Complexity

Step 4. In the right panel, double-click Maximum PIN length. Here you can choose the option of Not Configured, then the PIN length should be less than or equal to 127.

select Not Configured

Also, you can select the Enabled option and set up the desired maximum PIN length.

set up the maximum PIN length

Step 5. Finally, click Apply and OK sequentially.

Likewise, you can double-click the Minimum PIN length policy to configure the minimum PIN length.

Step 6. Restart the computer and check if you can reset a PIN that is longer than 4 digits.

How to Disable Security Questions for Local Accounts Win 10/11
How to Disable Security Questions for Local Accounts Win 10/11

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.

Read More
Tips:
If your files get deleted by Windows or due to other reasons, you can use MiniTool Power Data Recovery to recover deleted files. It is effective in recovering documents, pictures, videos, audio, emails, etc. from computer internal hard drives, external hard drives, USB drives, SD cards, and so on.

MiniTool Power Data Recovery FreeClick to Download100%Clean & Safe

Final Words

Reading here, you should know how to extend the PIN length in Windows 10/11. If you have any questions or suggestions about the instructions above, please feel free to let us know by leaving a comment below.

If you encounter any problems when using MiniTool Power Data Recovery, do not hesitate to contact us via [email protected].

  • linkedin
  • reddit