NT Groups within Groups

Posted on 2005-05-09
Last Modified: 2013-12-04
Using nested Global Groups in the Active Directory 2003 - how can I find out using adsi which groups a group is a member of?

Question by:dpedley
    1 Comment
    LVL 38

    Accepted Solution

    Hmmm that's a good one....

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    As I write this article, I am finishing cleanup from the Qakbot virus variant found in the wild on April 18, 2011.  It was a messy beast that had varying levels of infection, speculated as being dependent on how long it resided on the infected syste…
    Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now