Set Minimum PIN Length for Windows 10 Startup
In this article
Windows 10 does not offer a single "minimum PIN length" slider for sign-in. The PIN you use at startup is tied to Windows Hello, and its length rules are enforced through group policy or the registry: you can require a minimum PIN length, but you cannot set it to a value shorter than four digits, and you cannot force a PIN-only sign-in for every account without also managing password and Hello settings. For most home users the practical route is Local Group Policy Editor (gpedit.msc) on Windows 10 Pro, Enterprise, or Education; Windows 10 Home does not include gpedit, so you must use the registry method described below. Before you start, make sure you can sign in with your password, because changing PIN policy can temporarily block PIN sign-in until you reset the PIN.
What You'll Need
- A Windows 10 PC where you can sign in with an administrator account.
- Your current account password (not just the PIN) as a fallback.
- Windows 10 Pro, Enterprise, or Education for the Group Policy method; Windows 10 Home requires the registry method.
- About 10 minutes and a restart at the end.
Step-by-Step
- Confirm your Windows edition. Press Windows key + R, type winver, and press Enter. The dialog shows your edition. If it says Home, skip to the registry steps at the end of this list; the gpedit steps will not be available.
- Open Local Group Policy Editor. Press Windows key + R, type gpedit.msc, and press Enter. If Windows cannot find gpedit.msc and you are on Pro, Enterprise, or Education, the policy editor may be missing from that install; use the registry method instead.
- Navigate to the PIN policy. In the left pane, expand Computer Configuration > Administrative Templates > System > Logon. In the right pane, locate the policy named Minimum PIN length. Labels can differ slightly by Windows version and language, so look for the entry that mentions PIN length under Logon.
- Enable the policy. Double-click Minimum PIN length. Select Enabled. In the Minimum PIN length field, enter a whole number from 4 to 127. Four is the lowest value Windows accepts; anything lower is rejected or ignored. Click Apply, then OK.
- Apply the policy immediately. Open Command Prompt as administrator (right-click Start > Command Prompt (Admin) or Windows PowerShell (Admin)) and run gpupdate /force. Wait for the confirmation that computer policy updated successfully.
- Sign out and test. Sign out or restart. At the sign-in screen, choose PIN and try a PIN shorter than your new minimum. Windows should refuse it and offer to reset the PIN. Set a PIN that meets the new length, then sign in normally.
- Registry method for Windows 10 Home. Press Windows key + R, type regedit, and press Enter. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System. If the System key does not exist under Policies\Microsoft\Windows, right-click Windows, choose New > Key, and name it System. In the right pane, right-click, choose New > DWORD (32-bit) Value, and name it PinMinimumLength. Double-click it, set Base to Decimal, and enter a value from 4 to 127. Click OK, then restart the PC.
- Remove the restriction later. In gpedit, set the policy back to Not Configured and run gpupdate /force. In the registry, delete the PinMinimumLength value or set the policy key back to its default. Then reset your PIN in Settings > Accounts > Sign-in options if you want a shorter one.
Common Mistakes
- Trying to set a minimum below four digits. Windows enforces a floor of four for PINs, so a value of 1, 2, or 3 will not give you a one- or two-digit startup PIN. If you need shorter authentication, a PIN is the wrong mechanism; use a picture password or password instead.
- Editing the wrong registry path. The PIN length value belongs under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System, not under CurrentControlSet or the per-user hive. A value in the wrong key has no effect.
- Forgetting gpupdate. Group Policy changes do not always apply until you sign out, restart, or run gpupdate /force. Testing immediately after clicking OK can make the policy look broken.
- Assuming this changes the password policy. Minimum PIN length is separate from minimum password length. Changing one does not change the other, and the PIN policy does not apply to domain password sign-in.
- Locking yourself out of PIN sign-in. If your current PIN is shorter than the new minimum, Windows will prompt you to reset it at the next sign-in. Keep your account password available so you can recover if the PIN reset fails.
Tips
- Use a PIN of six digits or more if the device travels; four digits is the Windows minimum, not a security recommendation.
- If you manage several PCs, the same policy can be set centrally through domain Group Policy, but this guide covers the local computer policy only.
- After changing the policy, check Settings > Accounts > Sign-in options to confirm the PIN reset prompt appears as expected.
- Document the value you set. A six-digit minimum is easy to forget months later when a new PIN is rejected.
- On shared family PCs, pair a longer PIN with a standard user account rather than an administrator account for everyday use.
Troubleshooting
The policy is enabled but a short PIN still works. Run gpupdate /force, sign out completely, and sign back in. If the old PIN still works, the policy may not have applied to the account; open gpedit again and confirm the setting reads Enabled with your number.
gpedit.msc is missing. On Windows 10 Home the editor is not included. Use the registry method above. On Pro, Enterprise, or Education, a missing gpedit usually means the installation is damaged or managed by an organization; use the registry method as a fallback.
Windows will not accept the PIN length value. Confirm you entered a whole number between 4 and 127 and that you are editing the correct policy. Remove any spaces or punctuation from the field.
You cannot sign in after the change. At the sign-in screen, choose Password instead of PIN, sign in, then go to Settings > Accounts > Sign-in options and reset the PIN to meet the new minimum. If the password is also unavailable, use your password reset disk or another administrator account on the PC.
The registry value has no effect. Check that the key path is exactly HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System and that the value name is spelled PinMinimumLength. Restart the PC rather than only signing out.
Frequently Asked Questions
Can I set a one-digit or two-digit PIN in Windows 10?
No. Windows enforces a minimum PIN length of four digits. The policy accepts values from 4 to 127, and lower values are not honored.
Does this setting apply to my Microsoft account PIN?
The policy applies to Windows Hello PIN sign-in on that PC, including a PIN tied to a Microsoft account. It does not change the length rules on other devices where you sign in with the same account.
Why is gpedit.msc not on my PC?
Local Group Policy Editor is included in Windows 10 Pro, Enterprise, and Education, not in Windows 10 Home. Home users must use the registry method.
Will changing the minimum PIN length erase my current PIN?
No, but if your current PIN is shorter than the new minimum, Windows will require you to reset it at the next sign-in. Your account password remains unchanged.
Can I require a PIN instead of a password at startup?
You can make PIN sign-in available, but Windows still keeps password sign-in as a fallback, and some policy combinations can disable PIN sign-in entirely. There is no supported setting that removes the password option for every account.
Does this work on a domain-joined PC?
Local policy can be overridden by domain Group Policy. On a work PC, check with your administrator before changing PIN settings, because domain policy takes precedence.