Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a need to sync Active Directory information with another system. I need to pull out a list of AD users, and all their info (first name, last name, email -- anything stored with their record in AD, essentially.)

I did this once before -- years ago -- and it involved running a command line utility to export the AD user database to an XML file, which I then parsed.

Is this still the right way to do it, or have things changed in the intervening years? Any chance the domain controller has some sort of real-time Web service now?

share|improve this question
What OS are you using? 2003 or 2008? – KCotreau Jun 13 '11 at 22:31
2003 or 2008? Have you looked at dsget.exe, dsquery.exe or csvde.exe yet? – goblinbox Jun 13 '11 at 22:33
I'd also be curious what you plan to do with the data. That might change someone's potential answer as to the best tool for the job. – Patrick S. Jun 13 '11 at 23:30

PowerShell in the way to go. The Get-Aduser (or the Quest equiv - get-Qaduser) command will easily get the user information and powershell will export to csv, xml, etc.

Your next best option are the DS* utilities (dsget, dssearch, etc) will find user info as well. They work well, but Powershell is the wave of the future and you'll find a lot of help for it these days.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .