Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 help and support Forum Windows 8 Forum Vista Tutorials

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

Go Back   Vista Forums > Vista Forums > Tutorials

Vista - Password Expiration in Vista

Comment
 

Password Expiration in Vista

How to Enable or Disable Password Expiration in Vista
Published by Brink
10-01-2007
Password Expiration 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.
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 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='username' 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



Published by
Brink's Avatar
Administrator

Join Date: Apr 2007
Location: Texas, USA
Posts: 29,548
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 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 repute

Tutorial Tools

Applies to
All Vista Versions
64 Bit & 32 Bit

10-12-2007  
Lord Voldemort


XP 64 Bit
Riddle Graveyard
 
 

Re: Password Expiration in Vista

Thank's for Sharing..
That's Nice.

My System SpecsSystem Spec
10-12-2007  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64 SP1
Texas, USA
 
 

Re: Password Expiration in Vista

Your welcome Lord Voldemort,

Welcome to the forum.

Shawn
My System SpecsSystem Spec
12-16-2007  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64 SP1
Texas, USA
 
 

Re: Password Expiration in Vista

Updated 12-15-2007 to include METHOD THREE for all versions of Vista.

Shawn
My System SpecsSystem Spec
06-08-2008  
Little-lost


Ultimate x64
 
 

Re: Password Expiration in Vista

Thanks for sharing.

LL
My System SpecsSystem Spec
06-08-2008  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64 SP1
Texas, USA
 
 

Re: Password Expiration in Vista

Your welcome LL, and welcome to Vista Forums.

Shawn
My System SpecsSystem Spec
08-12-2008  
d0b3r


Vista Home Premium
 
 

Re: Password Expiration in Vista

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!!!
My System SpecsSystem Spec
08-12-2008  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64 SP1
Texas, USA
 
 

Re: Password Expiration in Vista

Your welcome d0b3r, and welcome to Vista Forums.

Shawn
My System SpecsSystem Spec
07-05-2009  
agratefulreader


vista Premium 64
 
 

Re: Password Expiration in Vista

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.
My System SpecsSystem Spec
07-05-2009  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64 SP1
Texas, USA
 
 

Re: Password Expiration in Vista

You're most welcome, and welcome to Vista Forums.
My System SpecsSystem Spec
Comment

 Password Expiration in Vista problems?



Tutorial Tools


Similar topics to: Password Expiration in Vista
Tutorial Category
Resetting Vista Password Expiration Fails Vista security
Vista Home Premium password expiration Vista security
Password expiration in Vista Home Premium Vista security
how do i change the password expiration policy on Vista home premi Vista account administration
Password expiration Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, 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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50