Location: List Archives

List Archives

This forum is an archive of all posts to our mailing list over the past few years.  The forum is set read only therefore to contribute you will need to join our list community.  See more info about this here.

 

When subscribed to the list you should use your standard email client to send your posts to ActiveDir@mail.activedir.org.

List Archives

Subject: [ActiveDir] Decrypt the Pwdlastset value
Prev Next
You are not authorized to post a reply.

AuthorMessages
Yann TiroaUser is Offline

Posts:0

09/08/2005 5:36 AM  
Hello everybody
:o)Glad to come again to this list ;o)Is there a way to decrypt
the Pwdlastset value into readable formatother 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 =
127705607715645384Yann
DavidCliffeUser is Offline

Posts:10

09/08/2005 6:00 AM  
Hi Yann,

    Before I knew about joe's ADFIND (with the
nice  -tdc  switch!), I used to use  w32tm /ntte   for
doing that :-)

-DaveC
Reuters IS&T Service
Delivery
From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx
[mailto:ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of TIROA
YANNSent: Thursday, September 08, 2005 1:30 PMTo:
ActiveDir@xxxxxxxxxxxxxxxxxxSubject: [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 formatother 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 =
127705607715645384Yann



-----------------------------------------------------------------
Visit our Internet site at http://www.reuters.com

To find out more about Reuters Products and Services visit http://www.reuters.com/productinfo

Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Reuters Ltd.
MarcusOhUser is Offline

Posts:9

09/09/2005 2:15 AM  
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:
ActiveDir-owner@xxxxxxxxxxxxxxxxxx [mailto:ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of TIROA YANN
Sent: Thursday, September 08, 2005
1:30 PM
To: ActiveDir@xxxxxxxxxxxxxxxxxx
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
Yann TiroaUser is Offline

Posts:0

09/09/2005 3:16 AM  
Cool Marcus :)

Thanks for the tip and have a nice day !
Cordialement,Yann TIROACentre de Ressources
Informatique.Campus Scientifique de la DOUA.Bt. Gabriel Lippmann - 2
ème étage - salle 238.43, Bd du 11 Novembre 1918.69622 Villeurbanne
Cedex.

De : ActiveDir-owner@xxxxxxxxxxxxxxxxxx
[mailto:ActiveDir-owner@xxxxxxxxxxxxxxxxxx] De la part de
Marcus.Oh@xxxxxxxEnvoyé : vendredi 9 septembre 2005
16:14À : ActiveDir@xxxxxxxxxxxxxxxxxxObjet : 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:
ActiveDir-owner@xxxxxxxxxxxxxxxxxx [mailto:ActiveDir-owner@xxxxxxxxxxxxxxxxxx]
On Behalf Of TIROA
YANNSent: Thursday, September
08, 2005 1:30 PMTo:
ActiveDir@xxxxxxxxxxxxxxxxxxSubject: [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 formatother 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 =
127705607715645384Yann
You are not authorized to post a reply.
Forums >ActiveDir Mail List Archive >List Archives > [ActiveDir] Decrypt the Pwdlastset value



ActiveForums 3.7
AdventNet Banner
Friends

Friends

Namescape
Members

Members

MembershipMembership:
Latest New UserLatest:kosciesza69
New TodayNew Today:3
New YesterdayNew Yesterday:1
User CountOverall:4319

People OnlinePeople Online:
VisitorsVisitors:94
MembersMembers:1
TotalTotal:95

Online NowOnline Now:
01: coolandynet

Ads

Copyright 2008 ActiveDir.org
Terms Of Use