Follow
Windows

How to Enable or Disable Password Expiration in Windows 11

Richard
Written by
Richard
Apr 5, 2026 6 min read
How to Enable or Disable Password Expiration in Windows 11
Verified for Geek Rewind — This guide was last tested and updated in April 2026.

This tutorial will show you how to enable or disable password expiration for an account in Windows 10 and Windows 11.

Why Password Expiration Matters

When you enable password expiration for an account, the user will be forced to change their password the next time they sign in when it expires.

A local account password will expire when a maximum (42 days by default) and minimum (0 days by default) password age has been reached by default.

A Microsoft account password will expire every 72 days by default.

Option One

Enable or Disable Password Expiration for Local Account in Local Users and Groups

⚠️ Requires admin privileges

Note: Local Users and Groups is only available in the Windows 10/11 Pro, Enterprise, and Education editions. All editions can use Option Two.

  1. Open Local Users and Groups (lusrmgr.msc).
  2. Do the following:
    • Click on the Users folder in the left panel.
  3. Double-click on the local account name you want to change in the middle panel.
  4. 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.

  5. If you want, you can also change the maximum and minimum password age for local accounts.
  6. You can now close Local Users and Groups if you want.
Local Users and Groups window showing Users folder list
Password never expires checkbox option in account properties

Option Two

Enable or Disable Password Expiration for Local Account in Command Prompt

⚠️ Requires admin privileges

  1. Open Windows Terminal (Admin), and select Command Prompt.

Enable Password Expiration for Local Account(s)

What happens: Your password will need to be changed after it expires.

  1. Type one of the commands below into the command prompt and press Enter:

    For all existing local accounts:


    wmic UserAccount set PasswordExpires=True


    OR


    For a specific local account:


    wmic UserAccount where Name="adminuser" set PasswordExpires=True


    Replace adminuser with the actual username of the local account you want to enable password expiration for.

  2. If you want, you can also change the maximum and minimum password age for local accounts.

Disable Password Expiration for Local Account(s)

Disable password expiration for local accounts in Windows 11 using the Command Prompt WMIC command: wmic UserAccount set PasswordExpires=False for all accounts, or wmic UserAccount where Name=”adminuser” set PasswordExpires=False for a specific account. This prevents passwords from expiring and is the default Windows 11 setting.

What happens: Your password will never expire and you won’t be forced to change it.

  1. Type one of the commands below into the command prompt and press Enter:

    For all existing local accounts:


    wmic UserAccount set PasswordExpires=False


    OR


    For a specific local account:


    wmic UserAccount where Name="adminuser" set PasswordExpires=False


    Replace adminuser with the actual username of the local account you want to disable password expiration for.

  2. 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

  1. Open Windows Terminal (Admin), and select Windows PowerShell.

Enable Password Expiration for Local Account(s)

What happens: Your password will need to be changed after it expires.

  1. Type one of the commands below into the command prompt and press Enter:

    For all existing local accounts:


    Get-LocalUser | Set-LocalUser -PasswordNeverExpires $false


    OR


    For a specific local account:


    Set-LocalUser -Name 'adminuser' -PasswordNeverExpires $false


    Replace adminuser with the actual username of the local account you want to enable password expiration for.

  2. If you want, you can also change the maximum and minimum password age for local accounts.
  3. When finished, go to step 5 below.

Disable Password Expiration for Local Account(s)

Note: This is the default setting.

What happens: Your password will never expire and you won’t be forced to change it.

  1. Type one of the commands below into the command prompt and press Enter:

    For all existing local accounts:


    Get-LocalUser | Set-LocalUser -PasswordNeverExpires $true


    OR


    For a specific local account:


    Set-LocalUser -Name 'adminuser' -PasswordNeverExpires $true


    Replace adminuser with the actual username of the local account you want to disable password expiration for.

  2. You can now close Windows Terminal (Admin) if you want.

Option Four

Enable or Disable Password Expiration for Microsoft Account Online at Microsoft

Note: This option will also require you to change your Microsoft account’s password.

  1. Go to the Change your password site at Microsoft for your Microsoft account.
  2. Sign in to the Microsoft site with your Microsoft account to verify.
  3. Do the following:
    • Type your current password.
  4. Type a new password.
  5. Reenter the password to confirm.
  6. Check (to enable) or uncheck (to disable – this is the default) Make me change my password every 72 days for what you want.
  7. Click Save.
  8. Sign in to the Microsoft site with your Microsoft account’s new password to verify.
Microsoft account password expiration set to 72 days

Summary

You now know how to enable or disable password expiration in Windows 11. You have four options to choose from:

  • 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

Password expiration helps keep your account more secure by forcing you to update your password regularly. However, if you find it inconvenient, you can disable it. Remember that you need admin privileges to make these changes on your computer.

How do I stop my password from expiring in 🪟 Windows 11?

To stop your password from expiring, open the Local Users and Groups tool by typing 'lusrmgr.msc' in the Run dialog. Navigate to the Users folder, double-click your account, and check the box labeled 'Password never expires' in the General tab. Click OK to save your changes and disable expiration.

How to check password expiration date in 🪟 Windows 11?

You can check your password age by opening Command Prompt as an administrator. Type 'net user [username]' and press Enter. Look for the 'Password expires' field in the output. If it says 'Never,' your password will not expire. Otherwise, it will display the specific date and time of expiration.

Yes, modern security guidelines from organizations like NIST suggest that mandatory password expiration is no longer recommended. Frequent forced changes often lead users to choose weaker, predictable passwords. Instead, experts now prioritize using strong, unique passwords combined with multi-factor authentication to better protect accounts against unauthorized access and potential security breaches.

How to change Windows password expiration date?

To change the password expiration policy, open Command Prompt as an administrator. Use the command 'net accounts /maxpwage:[number of days]' to set your preferred duration. For example, typing 'net accounts /maxpwage:90' will set the password to expire every 90 days. Press Enter to apply the new policy to your system.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

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.

📚 Related Tutorials

How to Disable Command Prompt in Windows 11
Windows How to Disable Command Prompt in Windows 11
How to Change Your Password in Windows 11
Windows How to Change Your Password in Windows 11
How to Change Windows Terminal Themes
Windows How to Change Windows Terminal Themes
How to Switch to Local Account from Microsoft Account in Windows 11
Windows How to Switch to Local Account from Microsoft Account in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *