Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Active Directory > password expiration

Reply
Thread Tools Display Modes

password expiration

 
 
JeffH
Guest
Posts: n/a

 
      03-29-2010
Hi,

Is there a way in Active Directory to force a password to expire on a
certain day?

Thanks in advance,
JeffH
 
Reply With Quote
 
 
 
 
Florian Frommherz
Guest
Posts: n/a

 
      03-29-2010
Howdie!

Am 29.03.2010 21:09, schrieb JeffH:
> Is there a way in Active Directory to force a password to expire on a
> certain day?


Take the date you want the account to expire on and substract the max
password age from that date. You'll get the data when the passwords
needs to be set last -- that's the date you'll need to set pwdLastSet
attribute for that user. Since pwdLastSet has a weird format, you'll
need to convert the date into pwdLastSet's format
(http://msdn.microsoft.com/en-us/libr...84(VS.85).aspx) It's a
little tricky.

Cheers,
Florian
 
Reply With Quote
 
Florian Frommherz
Guest
Posts: n/a

 
      03-29-2010
Howdie!

Am 29.03.2010 21:09, schrieb JeffH:
> Is there a way in Active Directory to force a password to expire on a
> certain day?


Other than that, I was thinking if you really need the password to
expire on that date, if you could - more easily - have the account
expire on that date? That's exposed in the UI and easy to set and re-set
if you came to still need it after day-x (if you don't want to have the
user choose on that and have more control on it yourself).

Cheers,
Florian
 
Reply With Quote
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      03-29-2010


"JeffH" <> wrote in message
news:BB69ADA4-4AD3-4103-AC37-...
> Hi,
>
> Is there a way in Active Directory to force a password to expire on a
> certain day?
>
> Thanks in advance,
> JeffH


Active Directory has no provision for this. However, you can immediately
expire the password by assigning 0 to the pwdLastSet attribute (assuming the
password can expire). On the day you want the password to expire, run a
utility or script that makes pwdLastSet 0.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
try this Linky Wu Windows Server 0 12-21-2009 08:44 AM
Password Policy Change - When Into Effect Perry Windows Small Business Server 6 12-02-2009 07:22 PM
User Accounts can't be set to Administrator Steve A. Windows Vista Administration 10 03-09-2008 06:35 AM
RE: Domain Password Expiration - Not Being Detected Darrell Gorter[MSFT] Windows Vista Administration 0 01-02-2007 08:54 PM



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 51 52 53 54 55 56 57 58 59