Programs demonstrating functions to test for group membership. The method you chose to test for group membership will depend on the following factors - which client OS the program will run on, how many group tests you anticipate, whether you want to recognize membership in nested groups, whether you want to recognize membership in the "Primary Group", how many users and/or computers you will test for group membership, whether you have cross-domain groups, and how many groups you have.

This program reads user names from a text file and adds the users to a group. The name of the text file and the name of the group are passed to the program as parameters. The NT name of each user is specified in the text file. Uses the WinNT provider.

This program is similar to the previous, except that each user's Distinguished Name is specified in the text file. Uses the LDAP provider.

Program to document all groups in the domain, including membership.

Program to document all members of a group in Active Directory.

Program to document members of a group, even if there are more than 1000.

Program to document all groups that a user is a member of.

Program to determine the Primary Group of a user.

Program to set the Primary Group of a user.

Program to send a message to all members of an Active Directory group.

Grant permission to a group or user to join a computer to a domain.

Find and report on all instances of circular group nesting in the domain.

Document every unique combination of group memberships among users.

Document all members of a local group, including domain groups and users.

Document the security group membership of all users in the domain to a spreadsheet.