How to Enable or Disable Password Expiration in Windows 11
Password expiration in Windows 11 forces you to change your account password every 42 days by default. This built-in security rule stops passwords from staying the same forever, which helps protect your PC from unauthorized access.
You can turn off password expiration if you hate changing your password all the time, or turn it back on whenever you want extra security. Setting your password to never expire stops Windows from bothering you with sudden password update reminders.
Enable or disable password expiration in Windows 11 by opening Local Users and Groups, or by using Command Prompt or PowerShell with administrative privileges. Use the ‘Password never expires’ checkbox in Local Users and Groups, or the `wmic UserAccount set PasswordExpires=True/False` command.
Why Password Expiration Matters
Windows 11 password expiration is a security feature that prompts users to change credentials on a regular schedule. Active enforcement protects accounts by limiting the window of exposure if current credentials become compromised. Local user profiles enforce expiration after a designated period, typically fixed at 42 days by default.
Maximum password age dictates how many days pass before Windows requires a reset, while minimum password age defines how long a password must remain in use before modification. Local accounts default to a maximum age of 42 days and a minimum age of 0 days.
Microsoft accounts enforce a default expiration cycle of 72 days.
Option One
Enable or Disable Password Expiration for Local Account in Local Users and Groups
Open the Local Users and Groups manager (lusrmgr.msc) by pressing Win+R, typing lusrmgr.msc, and hitting Enter to manage local credentials. Availability is restricted to Pro, Enterprise, and Education editions of the operating system. Modifying user properties through this interface tailors security policies to specific workflows.
- Open Local Users and Groups (
lusrmgr.msc). - Do the following:
- Click on the Users folder in the left panel.
- Double-click on the local account name you want to change in the middle panel.
- In the General tab, check (to disable - this is the default) or uncheck (to enable) Password never expires for what you want. Then click OK.
Note: The Password never expires option will be grayed out if the User must change password at next logon box is checked.
- If you want, you can also change the maximum and minimum password age for local accounts.
- You can now close Local Users and Groups if you want.


Option Two
Enable or Disable Password Expiration for Local Account in Command Prompt
⚠️ Requires admin privileges
- Open Windows Terminal (Admin), and select Command Prompt.
Enable Password Expiration for Local Account(s)
Enforce expiration rules using the command-line interface to mandate scheduled updates for local profiles. Executing the required command tells Windows that credentials must rotate following a defined interval. Apply this policy across all profiles by running the `wmic UserAccount set PasswordExpires=True` command.
- Type one of the commands below into the command prompt and press Enter:
For all existing local accounts:
wmic UserAccount set PasswordExpires=TrueOR
For a specific local account:
wmic UserAccount where Name="adminuser" set PasswordExpires=TrueReplace
adminuserwith the actual username of the local account you want to enable password expiration for. - If you want, you can also change the maximum and minimum password age for local accounts.
Disable Password Expiration for Local Account(s)
Prevent a local account password from expiring by running a command-line utility. This keeps unattended systems accessible without forcing recurring credential updates.
Disabling the expiration timer stops the operating system from demanding scheduled security updates. Unattended workstations and shared environments often utilize this configuration to maintain uninterrupted operational access.
- Type one of the commands below into the command prompt and press Enter:
For all existing local accounts:
wmic UserAccount set PasswordExpires=FalseOR
For a specific local account:
wmic UserAccount where Name="adminuser" set PasswordExpires=FalseReplace
adminuserwith the actual username of the local account you want to disable password expiration for. - You can now close Windows Terminal (Admin) if you want.
Option Three
Enable or Disable Password Expiration for Local Account in PowerShell
⚠️ Requires admin privileges
- Open Windows Terminal (Admin), and select Windows PowerShell.
Enable Password Expiration for Local Account(s)
What happens: Credentials require modification once the designated expiration window closes.
- Type one of the commands below into the command prompt and press Enter:
For all existing local accounts:
Get-LocalUser | Set-LocalUser -PasswordNeverExpires $falseOR
For a specific local account:
Set-LocalUser -Name 'adminuser' -PasswordNeverExpires $falseReplace
adminuserwith the actual username of the local account you want to enable password expiration for. - If you want, you can also change the maximum and minimum password age for local accounts.
- When finished, go to step 5 below.
Disable Password Expiration for Local Account(s)
Disabling expiration controls halts automated prompts for credential changes. Removing these renewal prompts maintains continuous uptime for automated tasks and server endpoints.
- Type one of the commands below into the command prompt and press Enter:
For all existing local accounts:
Get-LocalUser | Set-LocalUser -PasswordNeverExpires $trueOR
For a specific local account:
Set-LocalUser -Name 'adminuser' -PasswordNeverExpires $trueReplace
adminuserwith the actual username of the local account you want to disable password expiration for. - You can now close Windows Terminal (Admin) if you want.
Option Four
Enable or Disable Password Expiration for Microsoft Account Online at Microsoft
Managing Microsoft account credentials requires navigating to the official online profile portal. Account security policies update directly through the browser dashboard after completing identity verification.
- Go to the Change your password site at Microsoft for your Microsoft account.
- Sign in to the Microsoft site with your Microsoft account to verify.
- Do the following:
- Type your current password.
- Type a new password.
- Reenter the password to confirm.
- Check (to enable) or uncheck (to disable - this is the default) Make me change my password every 72 days for what you want.
- Click Save.
- Sign in to the Microsoft site with your Microsoft account's new password to verify.

Summary
Local user configurations utilize management utilities, command-line tools, or PowerShell scripts, while cloud profiles require web-based dashboard portals. Selecting the Local Users and Groups utility provides an accessible graphical workflow for supported Windows editions.
- Option One: Use Local Users and Groups (easiest for beginners, Pro/Enterprise/Education editions only)
- Option Two: Use Command Prompt with WMIC commands (works on all editions)
- Option Three: Use PowerShell commands (works on all editions)
- Option Four: Change settings online for your Microsoft account
Mandatory credential rotation enforces baseline security compliance across Windows installations. Administrators retain the flexibility to override these restrictions when operational needs dictate continuous uptime. Administrative permissions remain mandatory for all system-level configuration adjustments.
How do I stop my password from expiring in 🪟 Windows 11?
Accessing the Local Users and Groups utility allows administrators to check the password never expires attribute for specific user profiles.
How to check password expiration date in 🪟 Windows 11?
Querying user account details through the command-line interface reveals active expiration dates and policy metrics.
Is password expiration no longer recommended?
Modern security frameworks, such as guidelines published by NIST (National Institute of Standards and Technology), discourage forced expiration policies because users frequently select weaker replacement strings.
How to change Windows password expiration date?
Updating the maximum password age parameter via the command-line utility modifies the rotation frequency for account credentials.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!