Server Fault is a question and answer site for system and network administrators. 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

Is there a way I can download the entire Active Directory. I know I could write script to crawl each and every user's entry that are linked in the hierarchy. But that would be very inefficient. I wanted to know if there is already a neat solution for this.


(I would prefer a solution that could be scripted for scheduled downloads)

share|improve this question

migrated from Jul 14 '11 at 17:10

This question came from our site for professional and enthusiast programmers.

The reason is that I need to download AD. I know that it can be large. But I want to build an app that create visual stats around user's hierarchical data. Do you have a solution? – bits Jul 13 '11 at 19:07
up vote 2 down vote accepted

Other than enumerating all AD objects starting at the top (using a Directory searcher component of some sort), I'm not really sure how to do this programmatically...

One solution - not programming, but using an existing tool - might be Sysinternals AD Explorer which allows you to connect to an Active Directory and store a snapshot of it on disk.

enter image description here

I don't know what format that snapshot is in, unfortunately - maybe you could get in touch with Mark Russinovich and ask if that format is documented / available in some form (or check it out yourself to see if you can figure it out).

Other options might be:

share|improve this answer
Great! Looks like this might be what I need. Thanks. – bits Jul 13 '11 at 21:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.