Platform SDK: Active Directory, ADSI, and Directory Services

Scope of Query

The scope of a query is determined by the object to which you bind. If you wish to query across all objects within an enterprise, bind to the global catalog service. Alternatively, you can bind to a specific domain to scope the search to a narrower range.

To identify whether a machine is running the global catalog service

  1. From the Start Menu, go to Admin, Active Directory Sites, and select Services Manager.
  2. Select sites, default, first-site name. In servers, select YOURCOMPUTERNAME-ntds settings.
  3. Right-click Select Properties. See if the Global Catalog check box is checked.