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)
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?
|
|
|
|
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)
|
|
|
|