Directory Services

Using ADO for Range Retrieval

If an automation language is used, the ActiveX Directory Objects (ADO) should be used to retrieve a range of property values.

When using ADO for range retrieval, there is one problem that needs to be specifically addressed. When querying for the final group of property values, the ADO object will retrieve zero objects, even though more remain. To retrieve the remaining values, it is necessary to use the range wildcard '*'. For example, if a group contains 150 members, member values 0-100 can be retrieved normally using ranged retrieval. If range 101-200 is then requested, the ADO object will return zero objects. At this point, it is necessary to modify the query to request range 101-*. This will retrieve values 101 to 150. The code example in Example Code for Using Ranging to Retrieve Members of a Group shows how to handle this case.

For more information about using ADO for range retrieval, see the following topics: