Change the Password Expiration Policy for Windows User Account

  1. Open Run Application (Win + R).

    This image shows Run application window.
  2. Enter gpedit.msc and click OK. Local Group Policy Editor will be displayed.

    This image shows Local group policy editor.
  3. Go to Computer Configuration -> Windows Settings -> Security settings -> Account Policies -> Password Policy.

  4. Double click on Maximum password age on the right panel.

    This image shows maximum password age properties.
  5. Set the expiration days as per your organization's password policy. Click on Apply and then OK.

    Note:

    This change is applicable to all the user accounts in the system.

Alternate Way

The password expiry policy can also be set using command line.
  1. Open Command Prompt as Administrator.

  2. Set the password expiration days as per your organization's password policy. Execute the command net accounts /maxpwage:180

    This image shows administrator command prompt

    Note:

    Here 180, is the password age. Change this as per your organization's password policy.