How to set a password expiration date in Windows 10

How to set a password expiration date in Windows 10 for both Microsoft linked Account and Local account

Many of you use the same password for years. This habit can be harmful to you. Change your important password after a duration of time to protect yourself. On Windows 10, you have the option to change the computer password after a duration. Microsoft allows you to change the password for both Microsoft linked account and local account. Let see how to set a password expiration date in Windows 10.

Set a password expiration date for Microsoft linked account

Some users like to use Microsoft linked accounts and others prefer to log in as a local account. Microsoft wants you to use Microsoft linked account. If you use Microsoft linked account, you can recover and change your computer’s password easily (if you forgot it). However, many users argue that using Microsoft linked accounts may slow your PC so Local account in Windows device is preferable. Let’s move forward to set a password expiration date in Microsoft linked account.

Remember this will work if you link your computer with Microsoft account. To check this, go to Settings> Account > Check your computer is linked to Microsoft account. If not, click on sign in with a Microsoft account instead and enter your Microsoft account ID and password.

Step 1: Enter into Microsoft account security area and then sign in using your Microsoft account and password.

Step 2: Click on Change my password under Password Security tab.

Change Microsoft account password

Step 3: Enter your current Microsoft account password and then enter the new password. Tick on the box before Make me change my password every 72 days and save it. After doing this log out of your Microsoft account.

set new password and expiration date

That’s it. Microsoft will expire the password you have created after 72 days and you will be prompted to set a new password.

Set a Password Expiration Date for Your Local Account

This process includes two steps:

  1. Enable password expiration
  2. Change maximum password age

Enable password expiration

Step 1: Press Windows Key + R to launch Run.

Step 2: Type the command below and hit Enter or click on Ok.


Step 3: Go to the advance tab and select users from the left bar.

advance account management

Step 3: Double-click on the user name. (I am the user of my computer: Rupam).

Step 4: Un-check the box password never expires to enable password expiration. And then hit click on Apply and Ok.

Select password never expires
Select password never expires

You have completed the steps to enable password expiration. The default password expiration time is 42 days. You can set the expiration time as your own let’s move forward to set a custom password expiration date for your Windows computer

Use Group Policy to set maximum password age

Step 1: Press Windows key + R to launch Run and write the command below and hit Enter or click on Ok to open Local group policy editor.


Step 2: Follow the path by click the arrow before the folders. Computer Configuration> Windows Settings> Security Settings> Account Policies> Password Policy.

Step 3: Double-click on the Maximum password age and change the value 14 or 30 or whatever you want. Then click on apply and Ok.

select password expire date

Now your maximum password age is changed to the chosen value. After the period Windows will prompt you to change your computer password.

Set the Maximum Password Age via Windows PowerShell

Step 1: Type cmd in the search bar and right-click on it to launch Command Prompt (admin).

Step 2: Type the command below to see the maximum password age. You will see it is set to 42 days by default.

net accounts

Step 3: Now Write the command below to change the maximum password age. You can change the value “30” and put your own value.

net accounts /maxpwage:30

You have successfully set a password expiration date in Windows 10 computer for local account.

Stay updated and protected. Comment me if you face any difficulties.

You may also like:

Sharing is Caring

Similar Posts

Leave a Reply

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