Directory Services

Enumerating Users on Member Servers and Windows 2000 Professional

On member servers and computers running on Windows 2000 Professional, you can enumerate all users in local security database.

To enumerate the users on a member server or computer running on Windows 2000 Professional

  1. Bind to the computer using the following rules:
  2. Add user to the IADsContainer.Filter property. This causes the enumeration to only contain objects that have the user object class.
  3. Enumerate the objects. For each user object, use the IADs or IADsUser interface methods to read the user properties.