How to Change Maximum and Minimum Password Age in Windows 7 and Windows 8
InformationThis will show you how to change the maximum and minimum password age in days the password for all users can be used before it expires and must be changed by the user in Windows 7 and Windows 8.
By default it is 42 days maximum password age, 0 days minimum password age.
In Windows 8, this only applies to local accounts, and not Microsoft accounts..
Note
Maximum Password Age -
This security setting determines the period of time (in days) that a password can be used before the system requires the user to change it. You can set passwords to expire after a number of days between 1 and 999, or you can specify that passwords never expire by setting the number of days to 0. If the maximum password age is between 1 and 999 days, the Minimum password age must be less than the maximum password age. If the maximum password age is set to 0, the minimum password age can be any value between 0 and 998 days.
Minimum Password Age -
This security setting determines the period of time (in days) that a password must be used before the user can change it. You can set a value between 1 and 998 days, or you can allow changes immediately by setting the number of days to 0. The minimum password age must be less than the Maximum password age, unless the maximum password age is set to 0, indicating that passwords will never expire. If the maximum password age is set to 0, the minimum password age can be set to any value between 0 and 998.
Configure the minimum password age to be more than 0 if you want Enforce password history to be effective. Without a minimum password age, users can cycle through passwords repeatedly until they get to an old favorite.
WarningYou can only do this while logged in as an administrator.
EXAMPLE: Password Expiration
NOTE: This is what a user will see at log on when the maximum password age is reached and they are required to change their password.
OPTION ONEThrough Local Security Policy Manager
NOTE: This option is only available for the Windows 7 Professional, Ultimate, and Enterprise editions.
1. If you have not already, you must enable password expiration for each user account that you want to have their password expire after the maximum password age.
2. Open the Local Security Policy editor.
3. In the left pane, expand Account Policies, and click on Password Policy. (see screenshot below)
4. To Change the Maximum Password Age
A) In the right pane, double click on Maximum password age. (see screenshot above)5. To Change the Minimum Password Age
B) Enter how many days between 0 and 999 that you want passwords can be used before the system require's the user to change it in Windows 7 or Windows 8, then click on OK. (see screenshot below)
NOTE: Setting the maximum password age to 0 will set passwords to never expire for all users. See NOTE box at the top of the tutorial.
A) In the right pane, double click on Minimum password age. (see screenshot below step 3)6. Close the Local Security Policy editor.
B) Enter how many days between 1 and 998 that you want passwords for all users to be used for before the user is allowed to change it in Windows 7 or Windows 8, then click on OK. (see screenshot below)
NOTE: See NOTE box at the top of the tutorial.
OPTION TWOThrough an Elevated Command Prompt
NOTE: This option is available for all Windows 7 editions.
1. If you have not already, you must enable password expiration for each user account that you want to have their password expire after the maximum password age.That's it,
2. Log in to the user account that you want to change the maximum and minimum password age for.
3. Open an elevated command prompt in Windows 7 or Windows 8.
4. To See the Current "MAX and MIN password age" Settings
5. To Disable Password Expiration for All Users
A) In the elevated command prompt, type the command below and press Enter. (see screenshot below)6. To Change the Maximum Password Age
B) Go to step 8.Code:net accounts /maxpwage:unlimited
A) In the elevated command prompt, type the command below and press Enter. (see screenshot below)7. To Change the Minimum Password Age
NOTE: Substitute (1-999) for how many days between 1 and 999 that you want passwords can be used before the system require's the user to change it in Windows 7 or Windows 8. See NOTE box at the top of the tutorial.
FOR EXAMPLE: I would type in this command exactly for the default of 42 days, and press enter.Code:net accounts /maxpwage:(1-999)
Code:net accounts /maxpwage:42
A) In the elevated command prompt, type the command below and press Enter. (see screenshot below)8. Close the elevated command prompt.
NOTE: Substitute (0-998) for how many days between 0 and 998 that you want passwords for all users to be used for before the user is allowed to change it in Windows 7 or Windows 8. See NOTE box at the top of the tutorial.
FOR EXAMPLE: I would type in this command exactly for the default of 0 days, and press enter.Code:net accounts /minpwage:(0-998)
Code:net accounts /minpwage:0
Shawn
Related Tutorials
- How to Enable or Disable Password Expiration for a User in Windows 7 and Windows 8
- How to Change the Password for Your or Another User Account in Windows 7
- How to Create a Password for a Windows 7 User Account
- How to Reset the Password of a User Account in Windows 7
- How to Make Windows 7 Require a User Name and Password at Log On
- How to Add or Remove Change Password from the CTRL+ALT+DEL Screen
- How to Create a Windows 7 Password Reset Disk
- How to Use System Restore to Change User Account Password
- How to Change the User Account Password if Unable to Login to Windows
- How to Enable or Disable Password must meet Complexity Requirements
- How to Set Account Lockout Threshold for Invalid Logon Attempts
- How to Set Account Lockout Duration for Locked Out User Accounts
- How to Set the Reset Account Lockout Counter After Setting
- How to Enable or Disable Windows 7 Password History Enforcement
- How to Change the Time to Warn a User to Change Password Before Expiration
- How to Prevent or Allow a User to Change their Password in Vista and Windows 7
- How to Remove the Password for Your or Another User Account in Windows 7