Hi Carlos,
 
Enclosed are the scripts I mentioned -
 
NOTES -
 
* Neither have been tested against a 2000 AD or when executed on a 2000 Workstation
    - the basic elements of both scripts should function against and on a downlevel AD/workstation (may require minor mods.)
* The shell script use some nasty kludges in order to construct the FileTime query
    - to date, neither I nor my customers have experienced any negative effects
* The shell script requires Domain Admins privilege due to the kludge
    - the VBscript does not, but obviously does depend upon being able to read a user's accountExpiry attribute
* I recommend extending the native UI using DisplaySpecifiers in order to incorporate these scripts into AD U&C
* The shell script depends upon LDIFDE (and other executables), ensure they are local and within the path
 
For those that choose to try them, please feel free to let me know if you encounter any bugs (hopefully, I won't regret saying that :)
 
Hope they help!
 
Dean

--
Dean Wells
MSEtechnology
( Tel: +1 (954) 501-4307
* Email: dwells@msetechnology.com
http://msetechnology.com

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Carlos Magalhaes
Sent: Wednesday, September 10, 2003 7:01 AM
To: '[EMAIL PROTECTED]'
Subject: [ActiveDir] Converting Active Directory 64 Bit Time Values into Date Strings with Perl and general process you can use for other languages

Dean can you please share these with us?

-----Original Message-----
From: Dean Wells [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 06, 2003 2:12 AM
To: AD mailing list (Send)
Subject: RE: [ActiveDir] Converting Active Directory 64 Bit Time Values into Date Strings with Perl and general process you can use for other languages

In addition to Joe's insight, both Windows XP and Server 2003 (but not 2000)
include a command line tool that produces the same end result -

C:\>w32tm /ntte 127000000000000000
146990 17:46:40.0000000 - 6/13/2003 1:46:40 PM (local time)

In addition (and as recently referenced in the public newsgroups), I wrote a
script (no non-native or 3rd party additions required) some time back that
can be glued into AD U&C to provide a simple context sensitive query to
discover (for example) all accounts that will expire prior to a supplied
date.

Thanks for the Perl snippet!

Dean

--
Dean Wells
MSEtechnology
* Tel: +1 (954) 501-4307
* Email: [EMAIL PROTECTED]
http://msetechnology.com

 

Reply via email to