Title: AD LDAP Data Conversion Question
The pwdlastset attribute should give you what you want for computer accounts. This was just discussed in the last week or so on this list.
 
Check the oldcmp tool from joeware.net - http://www.joeware.net/win/free/tools/oldcmp.htm to be exact. It'll do this (and more) and give you a usable report. If you want to do it on your own with perl I have a snippet that will convert the number in pwdlastset to a date.
 
    al

--

Al Lilianstrom
CD/CSS/CSI
[EMAIL PROTECTED]

 


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