Title: Message

If you use the  WinNT interface instead of LDAP, the LastLogin attribute does the conversion to a “readable” format for you. Just remember in Win2k, you need to query every DC and use the highest value.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ken Cornetet
Sent: Wednesday, October 27, 2004 12:40 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] AD LDAP Data Conversion Question

 

It's in a format called VT_FILETIME. If memory serves, it is the number of milliseconds since some date long ago (1600 comes to mind).

 

VB has a variant type to convert it for you.

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Menten, Jeff
Sent: Wednesday, October 27, 2004 10:23 AM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] AD LDAP Data Conversion Question

All,

I would like to extract the "lastLogon" value from AD to check for orphan workstations, etc. This attribute has an INTEGER8 format - which, as far as I can tell, is an eight-byte data structure. Does anyone know of an easy way to convert this value via VBscript to a readable format that will actually print?

Thanks,
        - Jeff M.


 
 
___________________________________________________________________________
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information.  Any unauthorized review, use, disclosure or
distribution is prohibited.  If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

Reply via email to