- On Windows, the default password expiration period is 42 days for local accounts and 72 days for Microsoft accounts.
- To turn off password expiration for your Microsoft account on Windows, you’ll need to reset your current password.
- For a local account, you can turn off password expiration by running a single command.
How to Disable Password Expiration for a Microsoft Account
It’s possible to turn off password expiration for your Microsoft account on Windows , but it requires resetting your current password. If you are fine with that, employ these steps to disable the password expiration feature for your Microsoft account.
Step 1: Open up your preferred web browser, head over to Microsoft’s account security page , and sign in with your account credentials.

Step 2: Under Password security, click on Change my password .

Step 3: Enter your current password and input your new password twice.

Step 4: Clear the Make me change my password every 72 days checkbox and hit Save .

Following that, you should not see the “Your password has expired and must be changed” message at regular intervals.
How to Disable Password Expiration for a Local User Account
For those using a local user account in Windows 11 , disabling the password expiration feature is a relatively simple task that does not necessitate a password reset. Here’s how to do it.
Step 1: Right-click on the Start icon and select Terminal (Admin) from the list.

Step 2: Paste the following command in the console and press Enter to disable password expiration for a local account:
wmic UserAccount where Name="Username" set PasswordExpires=False
Make sure you replace Username in the above command with the actual name of the local account.

Running the above command will disable the password expiration feature for the specified local account in Windows 11. Alternatively, if you want to disable password expiration for all the local accounts on your system, open the Command Prompt with administrative privileges again. Then, type in the following command and hit Enter .
wmic UserAccount set PasswordExpires=False
