NT Groups within Groups

Using nested Global Groups in the Active Directory 2003 - how can I find out using adsi which groups a group is a member of?

Who is Participating?
Rich RumbleSecurity SamuraiCommented:
Hmmm that's a good one.... http://www.microsoft.com/technet/scriptcenter/scripts/ad/groups/adgpvb16.mspx

On Error Resume Next
 Set objGroup = GetObject _
 arrMembersOf = objGroup.GetEx("memberOf")
 WScript.Echo "MembersOf:"
For Each strMemberOf in arrMembersOf
    WScript.Echo strMemberOf

That does it for me ;)

You can also try the ADSI script-o-matic for yourself, takes some customization for most scripts to run correctly, but is very useful.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.