Cool Marcus :)
 
Thanks for the tip and have a nice day !

Cordialement,

Yann TIROA

Centre de Ressources Informatique.
Campus Scientifique de la DOUA.
Bât. Gabriel Lippmann - 2 ème étage - salle 238.
43, Bd du 11 Novembre 1918.
69622 Villeurbanne Cedex.

 


De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de [EMAIL PROTECTED]
Envoyé : vendredi 9 septembre 2005 16:14
À : [email protected]
Objet : RE: [ActiveDir] Decrypt the Pwdlastset value

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