How to Turn On or off PIN Expiration in Windows 11
PIN expiration in Windows 11 forces you to change your sign-in PIN after a set number of days. By default, Windows sets this timer to 42 days for local accounts unless you change the rule.
You can turn off this requirement or pick a different schedule so your PIN stays active as long as you want. Changing this setting takes a few clicks in the Local Group Policy Editor (a built-in tool that lets you manage advanced system settings), though you need Windows 11 Pro, Enterprise, or Education to use it.
Open the Local Group Policy Editor and navigate to Computer Configuration Administrative Templates System PIN Complexity. Double-click “Expiration” and select Enabled to set a duration or Disabled to turn it off.
What is a 🪟 Windows 11 PIN?
A Windows 11 PIN is a short numerical code that replaces your account password for quick and secure sign-ins on your computer. It works alongside options like fingerprint or face recognition. Windows 11 PIN expiration sits turned off by default, meaning your security code does not have to be changed on a regular schedule unless you choose to turn that rule on.
Windows 11 also allows you to sign in using a picture password, fingerprint, or face recognition.
Windows 11 PIN expiration sits turned off by default, meaning your PIN does not expire. Administrators can set the PIN to expire after a specific duration, ranging from 1 day to 730 days (2 years). This change mandates periodic updates to the code. Alternatively, configuring the system for permanent PIN retention remains an option.
How to Turn PIN Expiration On or Off Using Group Policy Editor
Windows 11 PIN expiration can be turned on or off using the Local Group Policy Editor if you use Windows 11 Pro, Enterprise, or Education. This tool controls how many days pass before Windows forces you to change your sign-in code. Open the tool from the Start menu to adjust the expiration schedule for your security credentials.
- Click the Start button and type
Edit group policy. Click the app that appears. This opens the Local Group Policy Editor. - In the window that opens, go to this folder path on the left side:
Computer Configuration > Administrative Templates > System > PIN Complexity - On the right side, find and double-click the setting called
Expiration. - A new window will pop up. Here you can choose:
- Not Configured – This is the default. It works the same as Disabled.
- Enabled – Turn on PIN expiration. You can then set how many days until the PIN expires (between 1 and 730 days). Enter 0 if you want the PIN to never expire.
- Disabled – Turn off PIN expiration.
- After choosing your option, click OK to save.

How to Turn PIN Expiration On or Off Using the Registry Editor
Windows 11 PIN expiration settings can be managed through the Registry Editor (a database for low-level system settings) if your version of Windows does not include the Group Policy Editor. This method lets you set a specific number of days before your sign-in code expires or turn expiration off completely by editing system keys directly.
The registry stores critical Windows settings, and changing them incorrectly can cause issues.
Open the Registry Editor:
- Press Windows key + R to open the Run box.
- Type
regeditand press Enter. - Navigate to this folder path:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PassportForWork\PINComplexity - If you don't see
PassportForWorkorPINComplexity, right-click on the previous folder. ChooseNew > Keyto create them. - Right-click on
PINComplexity. SelectNew > DWORD (32-bit) Value. Name itExpiration. - Double-click the new
Expirationentry. Select Decimal under Base. Then enter:- A number between 1 and 730 to set the PIN expiration days.
- Or 0 to never expire.
- Click OK, then close the Registry Editor.
- Restart your computer to apply the changes.

Reverting to default behavior and stopping PIN expiration requires deleting the Expiration value you created.
Summary
- Windows 11 lets you make your PIN expire after a set number of days. Or it can never expire.
- By default, PINs do not expire.
- You can change expiration settings using either the Group Policy Editor (for Pro and higher) or the Registry Editor.
- Always back up your data before making system changes.
- Regularly reviewing your PIN settings helps keep your PC secure.
Windows 11 PIN expiration is turned off by default, but you can change it to make your security code expire after a set number of days. You can update this rule using either the Group Policy Editor on Pro versions or the Registry Editor on Home editions. Reviewing these settings helps keep your computer secure over time.
More Info from Microsoft: Official Microsoft PIN Expiration Settings
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!