georgedschneider
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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.
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.
ASKER