Windows 7 Forums


Windows 7: Password Expiration - Change MAX and MIN Password Age


Password Expiration - Change MAX and MIN Password Age

How to Change the Maximum and Minimum Password Age in Windows 7
Published 23 Mar 2010
Published by

Featured Tutorial

SF Diagnostic Tool - Using for Troubleshooting
SF Diagnostic Tool - Using for Troubleshooting

Using SF Diagnostic Tool for Troubleshooting

Troubleshooting Steps for Windows 7
Troubleshooting Steps for Windows 7



Search - Find More with Filters and Operators
Search - Find More with Filters and Operators

How to Use Windows Search Filters and Operators to get better Search Results in Windows 7

Microsoft Account "Two-step Verification" - Turn On or Off
Microsoft Account "Two-step Verification" - Turn On or Off

How to Turn "Two-step Verification" On or Off for your Microsoft Account

Peppermint3 - Create Live CD/DVD/USB To Use For Emergency Backup
Peppermint3 - Create Live CD/DVD/USB To Use For Emergency Backup

How to Perform an Emergency Data Backup When Windows 7 Will Not Boot

Safe Internet Browsing
Safe Internet Browsing

How to safely operate on the internet and stay free from malware infections
How to Change the Maximum and Minimum Password Age in Windows 7

information   Information
This 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.

By default it is 42 days maximum password age, 0 days minimum password age.
Note   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.
warning   Warning
You 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.
Password Expiration - Change MAX and MIN Password Age-expired1.jpgPassword Expiration - Change MAX and MIN Password Age-expired2.jpgPassword Expiration - Change MAX and MIN Password Age-expired3.jpg



OPTION ONE
Through 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)
Password Expiration - Change MAX and MIN Password Age-secpol-1.jpg
4. To Change the Maximum Password Age
A) In the right pane, double click on Maximum password age. (see screenshot above)

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, 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.
Password Expiration - Change MAX and MIN Password Age-secpol-2.jpg
5. To Change the Minimum Password Age
A) In the right pane, double click on Minimum password age. (see screenshot below step 3)

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, then click on OK. (see screenshot below)
NOTE: See NOTE box at the top of the tutorial.
Password Expiration - Change MAX and MIN Password Age-secpol-3.jpg
6. Close the Local Security Policy editor.




OPTION TWO
Through a 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.

2. Log in to the user account that you want to change the maximum and minimum password age for.

3. Open a elevated command prompt.

4. To See the Current "MAX and MIN password age" Settings
A) In the elevated command prompt, type net accounts and press Enter. (see screenshot below)
Password Expiration - Change MAX and MIN Password Age-cmd1.jpg
5. To Disable Password Expiration for All Users
A) In the elevated command prompt, type the command below and press Enter. (see screenshot below)

Code:
net accounts /maxpwage:unlimited
Password Expiration - Change MAX and MIN Password Age-cmd2.jpg
B) Go to step 8.
6. To Change the Maximum Password Age
A) In the elevated command prompt, type the command below and press Enter. (see screenshot below)
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. See NOTE box at the top of the tutorial.

Code:
net accounts /maxpwage:(1-999)
FOR EXAMPLE: I would type in this command exactly for the default of 42 days, and press enter.

Code:
net accounts /maxpwage:42
Password Expiration - Change MAX and MIN Password Age-cmd3.jpg
7. To Change the Minimum Password Age
A) In the elevated command prompt, type the command below and press Enter. (see screenshot below)
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. See NOTE box at the top of the tutorial.

Code:
net accounts /minpwage:(0-998)
FOR EXAMPLE: I would type in this command exactly for the default of 0 days, and press enter.

Code:
net accounts /minpwage:0
Password Expiration - Change MAX and MIN Password Age-cmd4.jpg
8. Close the elevated command prompt.
That's it,
Shawn





Related Tutorials



Need more help? Try searching our extensive help and support site.
Loading
04 May 2010   #1
dw96

Windows 7 Home Premium [64-Bit]
Bulgaria/EU
 
 

Yet again, great Tutorial.
But I MUST ask - How did you take the screenshots of the Lockscreen?

My System SpecsSystem Spec

04 May 2010   #2
Airbot

Windows 7 Ultimate x64 SP1
 
 

Probably using a VM -virtual machine Windows 7 guest OS.
My System SpecsSystem Spec
04 May 2010   #3
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hello Stefan,

It's as Aaron posted above. I got the screenshots from a VM of Windows 7 in Windows Virtual PC.
My System SpecsSystem Spec
.


05 May 2010   #4
dw96

Windows 7 Home Premium [64-Bit]
Bulgaria/EU
 
 

Yeah, should have thought of that. Thanks for sharing
My System SpecsSystem Spec
05 May 2010   #5
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Ah, don't worry about it.
My System SpecsSystem Spec
10 Aug 2010   #6
gigabyte

windows 7 64bit
 
 

so if i have a password that never expires is that a security thret or am i more secure with a passowrd that never expires????
My System SpecsSystem Spec
10 Aug 2010   #7
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hello Gigabyte, and welcome to Seven Forums.

Technically it's more of a security threat to always use the same password since someone could eventually guess it. It's recommended to change it every so often (up to you when) to be safe in case someone else may be using it without you knowing it.

Hope this helps,
Shawn
My System SpecsSystem Spec
11 Aug 2010   #8
gigabyte

windows 7 64bit
 
 

hello brink thankyou for the quick reply i love dis forum.
My System SpecsSystem Spec
11 Aug 2010   #9
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

You're welcome Gigabyte.
My System SpecsSystem Spec
Comment

 Password Expiration - Change MAX and MIN Password Age problems?



Tutorial Tools



Similar help and support threads for: Password Expiration - Change MAX and MIN Password Age
Windows 7 Tutorial Category
Password Expiration Issue General Discussion
Prevent domain password expiration in sundays Network & Sharing
Password Change / Remove Password Problem General Discussion
Password Expiration Warning - Change Time Tutorials
Password Expiration - Enable or Disable Tutorials


All times are GMT -5. The time now is 03:45 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32