Enable or Disable Password Expiration in Windows 10

If Password Expiration is enabled for Local Accounts in Windows 10 then after the deadline for expiry is up, Windows will alert you to change your very annoying password. By default the Password Expiry feature is disabled, but some 3rd party program or application might enable this feature, and sadly there is no interface in Control Panel to disable it. The main problem is constantly changing the password, which in some cases leads you to forgot your password.

Enable or Disable Password Expiration in Windows 10

Although Microsoft makes it impossible for Windows Users to change the settings for Password Expiry for Local Accounts, there is still a workaround which works for most of the users. For Windows Pro users they can easily change this setting via Group Policy Editor while for Home users you could use Command Prompt to customize password expiration settings. So without wasting any time, let’s see How to Enable or Disable Password Expiration in Windows 10 with the help of the below-listed guide.

Enable or Disable Password Expiration in Windows 10

Make sure to create a restore point just in case something goes wrong.

Method 1: Enable or Disable Password Expiration for Local Account using Command Prompt

a. Enable Password Expiration In Windows 10

1. Open Command Prompt. The user can perform this step by searching for ‘cmd’ and then press Enter.

Open Command Prompt. The user can perform this step by searching for ‘cmd’ and then press Enter.

2. Type the following command and hit Enter:

wmic UserAccount where Name=”Username” set PasswordExpires=True

Note: Replace username with your account actual username.

wmic UserAccount where Name=Username set PasswordExpires=True | Enable or Disable Password Expiration in Windows 10

3. To Change maximum and minimum password age for Local Accounts type the following in cmd and hit Enter:

net accounts

Note: Make a note of the current maximum and minimum password age.

Make note of the current maximum and minimum password age

4. Now type the following command and hit Enter, but make sure to remember that the minimum password age must be less than the maximum password age.:

net accounts /maxpwage:days

Note: Replace days with a number between 1 and 999 for how many days the password expires.

net accounts /minpwage:days

Note: Replace days with a number between 1 and 999 for how many days after a password can be changed.

Set minimum and maximum password age in command prompt

5. Close cmd and reboot your PC to save changes.

b. Disable Password Protection in Windows 10

1. Open Command Prompt. The user can perform this step by searching for ‘cmd’ and then press Enter.

2. Type the following command and hit Enter:

wmic UserAccount where Name=”Username” set PasswordExpires=False

Disable Password Protection in Windows 10

Note: Replace username with your account actual username.

3. If you want to disable password expiration for all user accounts then use this command:

wmic UserAccount set PasswordExpires=False

4. Reboot your PC to save changes.

This is how you Enable or Disable Password Expiration in Windows 10 using Command Prompt.

Method 2: Enable or Disable Password Expiration for Local Account using Group Policy Editor

a. Enable Password Expiration for Local Account

Note: This method will work only for Windows 10 Pro, Enterprise, and Education editions.

1. Press Windows Key + R then type gpedit.msc and hit Enter.

gpedit.msc in run

2. From the left window pane expand Local Users and Groups (Local) then select Users.

3. Now in right window pane right-click on the user account whose password expiration you want to enable select Properties.

Right-click on the user account whose password expiration you want to enable then select Properties

4. Make sure you are in the General tab then uncheck Password never expires box and click OK.

Uncheck Password never expires box | Enable or Disable Password Expiration in Windows 10

5. Now press Windows Key + R then type secpol.msc and hit Enter.

6. In Local Security Policy, expand Security Settings > Account Policies > Password Policy.

Password Policy in Gpedit Maximum and minimum password age

7. Select Password Policy then in right window pane double-click on Maximum password age.

8. Now you can set the maximum password age, enter any number between 0 to 998 and click OK.

set Maximum password age

5. Reboot your PC to save changes.

b. Disable Password Expiration for Local Account

1. Press Windows Key + R then type gpedit.msc and hit Enter.

gpedit.msc in run

2. From the left window pane expand Local Users and Groups (Local) then select Users.

Right-click on the user account whose password expiration you want to enable then select Properties

3. Now in right window pane right-click on the user account whose password expiration you want to enable then
select Properties.

4. Make sure you are in General tab then checkmark Password never expires box and click OK.

Checkmark Password never expires box | Enable or Disable Password Expiration in Windows 10

5. Reboot your PC to save changes.

Recommended:

That’s it you have successfully learned How to Enable or Disable Password Expiration in Windows 10 but if you still have any queries regarding this guide then feel free to ask them in the comment’s section.

Leave a Comment

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