Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AD User addictional Account Information export 2

Status
Not open for further replies.

bidon15

MIS
Sep 20, 2003
107
US
Hi,
Does anyone know what is a best way and easy way that i can export the users from AD 2003 with addicational account information attribute? This feature is installed when you install acctinfo.dll. Now My boss would like to get a report of all users of AD with Username,Firstname,Lastname,Account Status,Date Account Expires, Date Password Expires, and last logon etc... It would be very appreciated if you can share your knowledge about this one with me? Perhaps if you know a vbscript that would help me too. He kind of wants it ASAP.
Thank in advance!
Regards,
 
Thank you very much for your recommendation. I just download and it works great.
Howevery, i am not sure my boss will be willing to pay for it or not. Is there a perl script that can do simalar like this exporting tool?

Regards,
 
To extract that attributes you require from AD, you can use the DSTools supplied by Microsoft. They are a collection of command line utils which query AD and extract the necessary information.

These tools can also be used to perform bulk updates to objects and accounts.

I havent used them in a while, however the bit below is an example of pulling back Bob's first name, last name and when his account expires.

DSQUERY USER -NAME Bob|DSGET USER -fn -ln -acctexpires

You will need to play around with the various options to get everything you need.

Cheers
 
Look for Scriptomatic ADSI, from the Microsoft boys. It writes scripts for you to manage AD.

-David
2006 Microsoft Valued Professional (MVP)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top