Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - Password Expiration - Enable or Disable



 

Password Expiration - Enable or Disable

How to Enable or Disable Password Expiration for a User in Windows 7
Published by Brink
03-23-2010
Default Password Expiration - Enable or Disable

How to Enable or Disable Password Expiration for a User in Windows 7

information   Information
Password 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.
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 - Enable or Disable-expired1.jpgPassword Expiration - Enable or Disable-expired2.jpgPassword Expiration - Enable or Disable-expired3.jpg



OPTION ONE

Through Local Users and Groups Manager

NOTE: This option is only available for the Windows 7 Professional, Ultimate, and Enterprise editions.
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)
Password Expiration - Enable or Disable-lusrmgr-1.jpg
3. To Enable Password Expiration for this User Account
A) Uncheck the password never expires box, then click on OK. (see screenshot below)
Password Expiration - Enable or Disable-lusrmgr-2.jpg
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.
4. To Disable Password Expiration for this User Account
A) Check the password never expires box, then click on OK. (see screenshot above)
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.
5. Repeat steps 2 to 3/4 for any other user account that you want to enable or disable password expiration for.

6. When done, close the Local Users and Groups Manager.




OPTION TWO

Through a Elevated Command Prompt

NOTE: This option is available for all Windows 7 editions.
1. Open a elevated command prompt.

2. To Disable Password Expiration for a User Account
A) In the elevated command prompt, type the command below and press Enter. (see screenshot below)
NOTE: Substitute username in the command below with the actual user account name that you want to disable password expiration for.

Code:
wmic path Win32_UserAccount where Name='username' set PasswordExpires=false
FOR EXAMPLE: I would type in this command exactly for a user account named Brink, and press enter.

Code:
wmic path Win32_UserAccount where Name='Brink' set PasswordExpires=false
B) Go to step 4.
3. To Enable Password Expiration for a User Account
A) In the elevated command prompt, type the command below and press Enter. (see screenshot below)
NOTE: Substitute username in the command below with the actual user account name that you want to enable password expiration for.

Code:
wmic path Win32_UserAccount where Name='username' set PasswordExpires=true
FOR EXAMPLE: I would type in this command exactly for a user account named Brink, and press enter.

Code:
wmic path Win32_UserAccount where Name='Brink' 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.
4. Close the elevated command prompt.
That's it,
Shawn



Related Tutorials

Published by
Administrator

Join Date: Oct 2008
Location: Texas
Posts: 34,826
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute

Tutorial Tools
Comment

Password Expiration - Enable or Disable problems?



Tutorial Tools



Similar Threads for: Password Expiration - Enable or Disable
Windows 7 Tutorial Category
Screen Saver Password Protection -Enable or Disable Tutorials
Prevent domain password expiration in sundays Network & Sharing
Password Expiration - Change MAX and MIN Password Age Tutorials
Password History Enforcement - Enable or Disable Tutorials
build 7100 disable expiration Performance & Maintenance


All times are GMT -5. The time now is 05:11 AM.



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