How Do I…Access Active Directory?
The Active Directory Service Interface (ADSI) accesses the capabilities of directory services from different network providers in a distributed computing environment to present a single set of directory service interfaces for managing network resources. Administrators and developers can use ADSI services to enumerate and manage the resources in a directory service, regardless of which network environment contains the resource. Use Active Directory to perform common administrative tasks, such as locating resources throughout the distributed computing environment. This sample illustrates how to locate resources in the Active Directory. It is a small console application that can be run from a command prompt. The application takes one command line argument. The first argument has to be a valid path to an Active Directory entry.