The latest Tales from the Script column, Part 2, gets down to the real nuts-and-bolts behind searching Active Directory.  It shows you how to write SQL queries that will help you return the exact information you’re looking for. Part 1 of this two-part series provided the fundamental principles behind searching Active Directory, in relation to scripting. 

Check out both of them: