Hey Yann… I found this to be useful… http://www.microsoft.com/technet/scriptcenter/topics/win2003/lastlogon.mspx

 

Here’s the snippet:

 

Set objUser = GetObject("LDAP://cn=Ken Myer, ou=Finance, dc=fabrikam, dc=com")

Set objLastLogon = objUser.Get("lastLogonTimestamp")

 

intLastLogonTime = objLastLogon.HighPart * (2^32) + objLastLogon.LowPart

intLastLogonTime = intLastLogonTime / (60 * 10000000)

intLastLogonTime = intLastLogonTime / 1440

 

Wscript.Echo "Last logon time: " & intLastLogonTime + #1/1/1601#

 

 

:m:dsm:cci:mvp


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of TIROA YANN
Sent: Thursday, September 08, 2005 1:30 PM
To: [email protected]
Subject: [ActiveDir] Decrypt the Pwdlastset value

 

Hello everybody :o)

Glad to come again to this list ;o)

Is there a way to decrypt the Pwdlastset value into readable format
other than uses the acctinfo.dll ?

I'd like to import users via csvde and dump the pwdlastset attribute,
but i don't understand the format :(

Ex : pwdLastSet = 127705607715645384

Yann

 

 

Reply via email to