Link to home
Start Free TrialLog in
Avatar of georgedschneider
georgedschneiderFlag for United States of America

asked on

VBScript to determine AD Group Membership

How could I write a VBSCript to dispaly the AD membership of the currently logged on user?
ASKER CERTIFIED SOLUTION
Avatar of yehudaha
yehudaha
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of georgedschneider

ASKER

What do you mean by recursive?
If you run them both, you'll see that the first one shows only the direct groups memberships (which is usually fine if you only want to check which groups they are directly members of).  The second script will show you the direct groups they are members of (as shown in the Member Of tab), as well as the groups that contains *those* groups as well.

For example, if Joe Smith is  member of HR, it will show that, but it will also show Resources, if the HR group is a member of the Resources group.

Regards,

Rob.