Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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)

share|improve this question

migrated from stackoverflow.com 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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.