How to Enable or Disable Password Expiration for a User in Windows 7 and Windows 8
InformationPassword expiration allows you to set a maximum password age in days (42 by default) of a user account before it expires and they must change their password.
By default, password expiration is disabled. This will show you how to enable or disable password expiration for a user in Windows 7.
NoteYou can only do this while logged in as an administrator.
In Windows 8, this only applies to local accounts, and not Microsoft accounts.
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 Users and Groups Manager
1. Open the Local Users and Groups Manager.
2. In the left pane, click on Users, then double click on the name of the user account that you want to enable or disable password expiration for. (see screenshot below)
3. To Enable Password Expiration for this User Account
A) Uncheck the password never expires box, then click on OK. (see screenshot below)4. To Disable Password Expiration for this User Account
B) You will now need to change the maximum and minimum password age of this user account for what you would like.
C) Go to step 5.
A) Check the password never expires box, then click on OK. (see screenshot above)5. Repeat steps 2 to 3/4 for any other user account that you want to enable or disable password expiration for.
NOTE: If password never expires is grayed out, then this means that this user account as reached it's set maximum password age. You will need to either change the maximum password age to more days so that it has not expired yet, or change the password for the user account in Windows 7 or Windows 8.
6. When done, close the Local Users and Groups Manager.
OPTION TWOThrough an Elevated Command Prompt
1. Open an elevated command prompt in Windows 7 or Windows 8.That's it,
2. Do step 3, 4, 5, or 6 below for what you would like to do.
3. To Disable Password Expiration for a User Account
A) In the elevated command prompt, type the command below, press Enter, and go to step 7 below. (see screenshot below)4. To Disable Password Expiration for All User Accounts on PC
NOTE: Substitute username in the command below with the actual user account name that you want to disable password expiration for.
FOR EXAMPLE: I would type in this command exactly for a user account named Brink, and press enter.Code:wmic UserAccount where Name='username' set PasswordExpires=False
B) Go to step 4.Code:wmic UserAccount where Name='Brink' set PasswordExpires=False
A) In the elevated command prompt, type the command below, press Enter, and go to step 7 below. (see screenshot below)5. To Enable Password Expiration for a User Account
Code:wmic UserAccount set PasswordExpires=False
A) In the elevated command prompt, type the command below, press Enter, and go to step 7 below. (see screenshot below)6. To Enable Password Expiration for All User Accounts on PC
NOTE: Substitute username in the command below with the actual user account name that you want to enable password expiration for.
FOR EXAMPLE: I would type in this command exactly for a user account named Brink, and press enter.Code:wmic UserAccount where Name='username' set PasswordExpires=True
B) You will now need to change the maximum and minimum password age of this user account for what you would like.Code:wmic UserAccount where Name='Brink' set PasswordExpires=True
A) In the elevated command prompt, type the command below, press Enter, and go to step 7 below. (see screenshot below)7. Close the elevated command prompt.
B) You can now change the maximum and minimum password age of each user account for what you would like.Code:wmic UserAccount set PasswordExpires=True
Shawn
Related Tutorials
- How to Change Maximum and Minimum Password Age 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
- How to View Detailed Information About All User Accounts on a Windows PC