Password Expiration in Vista

ByLine
How to Enable or Disable Password Expiration in Vista
Synopsis
Password expiration allows you to set a maximum password age in days of a user account before it expires and they must change their password. This will show you how to enable or disable password expiration for a user in Vista.
How to Enable or Disable Password Expiration in Vista

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.





METHOD ONE
Through Local Users and Groups

NOTE: The Vista Home Basic and Home Premium editions do not have this feature. See METHOD TWO below for how with these editions instead.[
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)
lusrmgr.jpg

3. To Enable Password Expiration for this User Account
A) Uncheck the password never expires box, then click on OK. (see screenshot below)​
Properties.jpg

B) 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. Close the Local Users and Groups window.​







METHOD TWO
Through a Elevated Command Prompt

NOTE: You can do this method in all versions of Vista. This will affect all user accounts on the computer.
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='[B][COLOR=red]username[/COLOR][/B]' set PasswordExpires=false
FOR EXAMPLE: I would type in this command exactly for a user account name 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='[B][COLOR=red]username[/COLOR][/B]' set PasswordExpires=true
FOR EXAMPLE: I would type in this command exactly for a user account name 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



 
Last edited by a moderator:
Shawn Brink

Comments

Brink, this article literally saved my butt big time, I run Vista Home Premium on a Mac inside VMWare Fusion and there's a serious bug that blocks me out of Windows when my password expires, a full reinstall is the only solution, not to mention since it's a virtual machine it's a pain to get inside to get the files from the virtual hard drive.

Other sites have the usual process with Vista Enterprise or Ultimate, but I only found yours that has a method to disable expiration on all versions, at least I have a workaround, many thanks!!!
 
Thank you. I have an iMac and am in the middle of a big problem trying to get Fusion to install its tools, only to have Vista start popping up reminding me that the password (which I don't remember ever giving) is about to expire--an extra problem I didn't need. Your explanation for how to abort the whole 'expiration' deal is SO CLEAR! Just perfect for what I needed. Thank you so much for taking the time to do that.

I signed up for this forum just to tell you this.
:D
 
I have Vista Ultimate and when I tried to log in it says password expired. Locked. I tried to switch users but it would not let me so I can not login. What can I do to get in?:shock:

It is telling me to create a password reset disc??? How do I do that?:confused:
 
Last edited:
how do I create a password reset disc? It says I need a flash drive for this. My God this is a work pc and I need to work right now! Why me?

I tried to get to safe mode wow is it fast. I finally got it to safe mode which says wait while loading files??? then it goes to the logon screen. Which then asks me for the password reset disc. That is what I am trying to make. I can not get from the safe mode to start button to make the password reset disc. I wonder if I am going to hate Vista Ultimate??? :mad: I am locked out of my own pc! It will not give me the prompt like the other operating systems. Like old password new password why not keep it simple. I did not see the note saying password to expire and if I did I may have thought it would be like the past 98! :cry::sa:

I will need more help please. Thank you
Shaun for your fast reply and links but they are not getting me where I need to go unless of course its user error. But from boot to safe mode is a blink of the eye literally! Safe mode does not take me to the black screen to enter the command string. OMG HELP
 
Top