The saved queries function in the Microsoft Management Console (MMC) Active Directory Users and Computers snap-in lets you create, save, and organize queries that you'll use repeatedly for administering Active Directory (AD) objects. You can create queries using the wizardlike options on the New Query dialog box, or you can define custom searches that can be used to gather whatever objects you like simply by keying in your own LDAP queries.
Here are the steps to follow in the Active Directory Users and Computers console to create a Custom Search saved query:
- Right click the Saved Queries folder and select New, Query.
- Enter an appropriate Name and Description.
- Make sure the query root is set to the domain level you want the query to pertain to.
- Select the Include subcontainers check box if you want the query to search all subcontainers.
- Click Define Query.
- In the Find dialog box, click the Find drop-down arrow and select Custom Search.
- On the Advanced tab, enter your LDAP query string into the Enter LDAP query box.
- Click OK twice.
What follows is a list of queries that can help you administer AD—and get you started on the road to using saved queries to simplify AD management. . . .


hlbgiang October 11, 2007 (Article Rating: