• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

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?

0
dpedley
Asked:
dpedley
1 Solution
 
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 _
    ("LDAP://cn=Scientists,ou=R&D,dc=NA,dc=fabrikam,dc=com")
objGroup.GetInfo
 arrMembersOf = objGroup.GetEx("memberOf")
 WScript.Echo "MembersOf:"
For Each strMemberOf in arrMembersOf
    WScript.Echo strMemberOf
Next

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.
http://www.microsoft.com/downloads/details.aspx?FamilyID=39044e17-2490-487d-9a92-ce5dcd311228&DisplayLang=en
http://www.microsoft.com/technet/scriptcenter/resources/qanda/hsgarch.mspx
-rich
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now