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.

Thanks.

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

link|improve this question
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
feedback

migrated from stackoverflow.com Jul 14 '11 at 17:10

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

1 Answer

up vote 1 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:

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

Your Answer

 
or
required, but never shown

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