Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password change history

Status
Not open for further replies.

bentley45

MIS
Jul 15, 2004
120
US
I need to generate a list of the dates when a user account password was changed. I know it was 5 times in the life of the account, but I need to know when.
Are there any scripts or utilities to return this info?
Thanks!
 
I don't think password histories are maintained for a user object (as far as I know). Your best bet would have been to audit your account objects and then query your security event log for that particular user and the associated event log id
 
Yes, you can query AD to get the last time a password was changed.

You must first bind to the user object. Here is a simple example.

Code:
Set objUser = GetObject _
    ("LDAP://CN=myerken,OU=management,DC=Fabrikam,DC=com")

dtmValue = objUser.PasswordLastChanged
WScript.Echo "Password last changed: " & dtmValue

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
Thanks Mark. What I actually need is the total password change history on the account. I know it has been changed 5 times in the life of the account, but I need to know the dates.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top