Enumerate users in an AD group AND its Subgroups/nested groups

Author Message
Stumpedtechy

  • Total Posts : 84
  • Scores: 0
  • Reward points : 0
  • Joined: 11/30/2007
  • Status: offline
Enumerate users in an AD group AND its Subgroups/nested groups Wednesday, January 25, 2012 2:30 AM (permalink)
0
Okay this is what I need to do and i have no clue where ot stat on this. I see many example scripts on enumerating the usrs in a group but they don't get subgroups.
 
Here is what I need.
Users First Name
Users Last name
Users Group Membership - so if the user is a member of the one I am reporting on or if they are a member of the sub group we need to know which group they are the member of.
Users e-mail address
Users Domain
 
Here is the problem we have a an AD group called (theoretically) AllAdmins it has users and it has groups assigned to it. Then you have a bunch of groups in there being SiteAdmins and you also have a sub group under SiteAdmins being things like MyApplicationAdmin or something that is Admin related. So I need to capture User X's information above who may be in MyApplicationAdmin though I ran this against AllAdmins. Can anyone who has done this provide some examples of a similar script I may be able to repurpose?
 
#1
    ebgreen

    • Total Posts : 8227
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: online
    Re:Enumerate users in an AD group AND its Subgroups/nested groups Wednesday, January 25, 2012 3:04 AM (permalink)
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9