Password Expiration in Windows 11: How to Enable/Disable It

Setup password expiration to secure your account

Reading time icon 6 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

Key notes

  • With the increase in cyber security threats, it is imperative that you protect your data and information.ย 
  • Password expiration is an important security feature on Windows operating systems that helps you to prevent unauthorized access to your PC.

Password expiration is a feature that allows users to set a password that will be automatically changed every so often. This is because most people forget their passwords or are unsure about what they have been using for a long time. 

To prevent unauthorized access to your accounts, you should regularly change your password and username. It’s also advisable to enable password expiration in Windows 11 for extra security. If you donโ€™t know how to, this article will come in handy to show you how to enable/disable password expiration.

Why should I set up password expiration in Windows 11?

You already know that having passwords on your accounts is a security measure to keep your files from unauthorized parties. However, if you use your password for too long, someone could be able to figure it out and get into your PC.

Setting up password expiration in Windows 11 can help improve your computer’s security. By allowing a time limit on the password that you have set, you can keep unwanted users from accessing your computer. 

Other reasons include the following: 

  • Prevent unauthorized changes – Password expiration helps prevent unwanted changes in your system settings or personal data by unauthorized users who have accessed the computer.
  • Protects your PC from hackers – If you are using a complex password for your PC and don’t change it regularly, then there is a possibility that your password will be compromised by hackers, especially when your user account expires.
  • Safeguard your privacy – Setting up password expiration will force users to change their passwords more often and make them harder to crack. This is especially helpful for anyone who uses the same password on multiple accounts.

If you regularly forget your passwords, then setting up this feature will not help you much as Windows 11 doesn’t have a default password.

How do I stop my Microsoft password from expiring?

Before you proceed to the following steps, ensure the next are in check:

1. Use the Microsoft website

  1. Navigate to your browser and log into the Microsoft Security page.
  2. Click on Password security and enter your current login credentials.
  3. Type in your new password and re-enter to confirm.
  4. Next, check the box Make me change my password every 72 days, then hit Save.
  5. To disable password expiration, follow steps 1 through 4, but this time round, make sure to uncheck the Make me change my password every 72 days option before you save.

Note that this method will only work for users with active Microsoft accounts on their Windows devices. If youโ€™re a local account user, proceed to the next two methods.

2. Use Computer Management

  1. Hit the Search icon, type lusrmgr.msc in the search bar and click Open.
  2. Click on Users on the left pane.
  3. Under the listed users, double-click on yours and uncheck the box Password never expires to enable password expiration, then press Apply and OK.
  4. Since this option is disabled by default, you donโ€™t have to worry about it. However, if you change your mind again and want to disable it after enabling it, simply follow steps 1 through 3 and check the Password never expires box, press Apply then OK.

3. Use Command Prompt

  1. Hit the Search icon, type cmd in the search bar, and click Run as administrator.
  2. Type in the following command to list all the users currently registered on your PC and hit Enter: net accounts
  3. Next, type in the following command and press Enter to enable password expiration. Remember to replace user name with the account you wish to enable: wmic UserAccount where Name="user name" set PasswordExpires=True
  4. To disable password expiration in Windows 11, type in the following command and replace user name with the name of the user account you wish to disable password expiration and hit Enter: wmic UserAccount where Name="user name" set PasswordExpires=False
  5. If you want to disable for all accounts, type in the following command and press Enter: wmic UserAccount set PasswordExpires=False

How can I extend the password expiration time limit?

Although the default expiry period for local accounts is 42 days while Microsoft accounts are 72, you can extend the password expiration time limit to be less or more depending on how often you want to change your password. Follow the steps below to adjust the time limit:

1. Use Group Policy 

  1. Hit the Windows  + R  keys to open the Run command.
  2. Type gpedit.msc and hit Enter to open Group Policy Editor.GPEDiT.msc -Windows Remediation Service Failed to Start?
  3. Navigate to the following location: Computer Configuration > Windows Settings > Security Settings > Account Policies > Password Policy
  4. Go to Maximum password age on the right pane, right-click on it, and select Properties.
  5. Youโ€™ll find that 42 days has been set as the default expiry time. Press the drop-down menus to increase or decrease the time limit, then click Apply and OK to save changes. The maximum amount of days is 999 days.

2. Use Command Prompt

  1. Hit the Windows key, type cmd in the search bar, and click Run as administrator.
  2. Type the following command and press Enter. Remember to replace user name with the corresponding name of the account you wish to adjust the expiration time limit: wmic UserAccount where Name="user account name" set PasswordExpires=True
  3. Next, type and Enter the following command. Remember to replace ## with the desired number of days you wish your password expiration limit to last: net accounts /maxpwage:##

For those who want to change their passwords regularly but have the habit of forgetting them easily, a password manager with emergency access should be a must-have.

Other users prefer not to have passwords at all, so if you’re confident in the people around you and want to do away with passwords, you can enable automatic login so that you don’t have to remember passwords.

However, if you’re not sure about giving full access to your PC, consider changing the minimum PIN length for your Windows 11.

If you’re interested in adding a user to a Windows server, we also have an expert article that you need to check out for all the details.

Do let us know of any additional thoughts you may have on this topic down below.

More about the topics: Manage passwords, Windows 11

User forum

0 messages