IADsMembers Interface

Inherited from

IDispatch

IUnknown

Applies to Objects

Global Group

Local Group

This Interface provides an enumeration facility for non-container objects like Groups.

Property/Method

Description

Count

Gets the number of ADs member objects

Filter

Gets and Sets Filter on Collection objects

Example
This example demonstrates the enumeration of Users in a Group.

Dim Group as IADsGroup
Dim Member as IADs
'Bind to the known NT Group object.
'Here MSFT is your domain name and "Domain Admins" is name of a group in MSFT domain.
Set Group = GetObject("NTDS://MSFT/Domain Admins")
'Enumerate the users in group and print their names.
'Here the Group.Members gives out IADsMembers Interface which is used internally to enumerate members of that group.
For Each Member in Group.Members
Debug.Print Member.Name
Next Member