You want to view the direct members of a group.
184.108.40.206 Using a graphical user interface
Open the Active
If you need to change domains, right-click on Active Directory Users
and Computers in the left pane, select Connect to Domain, enter the
domain name, and click OK.
In the left pane, right-click on the domain and select Find.
Enter the name of the group and click Find Now.
Double-click on the group in the bottom results pane.
Click the Members tab.
220.127.116.11 Using a command-line interface
> dsget group "<GroupDN>" -members
18.104.22.168 Using VBScript
' This code prints the direct members of the specified group.
' ------ SCRIPT CONFIGURATION ------
strGroupDN = "<GroupDN>" ' e.g. cn=SalesGroup,ou=Groups,dc=rallencorp,dc=com
' ------ END CONFIGURATION ---------
set objGroup = GetObject("LDAP://" & strGroupDN)
Wscript.Echo "Members of " & objGroup.Name & ":"
for each objMember in objGroup.Members
The member attribute of a group
object contains the distinguished names of the direct members of the
group. By direct members, I mean the members that have been directly
added to the group. This is in contrast to indirect group members,
which are members of the group due to nested group membership. See
Recipe 7.3 for how to find the nested
membership of a group.
7.2.4 See Also
Recipe 7.3 for viewing nested group membership