Using PowerShell with AD Nested groups
Posted on 2010-03-28
I am running Active Roles Management Shell 1.2.2 in our AD 2003 environment.
We have a situation where we have some DL's that contain several other DL's (i.e. nested groups), which in turn contain other nested groups and so on. This makes it difficult to gather a list of who is exactly in the top level group.
I had some questions I was hoping someone could help me with:
i) Is there a cmdlet I can use against a group that will return ALL the members of this group, regardless of which nested sub-group they are a member of?
ii) Is there a cmdlet I can use against a group that will return ALL of the members and also tell me which nested sub-group (if any) they belong to?
iii) Is there a cmdlet I can use against a group which will return all of the nested groups, regardless of the tier of nesting? For instance if I have:
Group1, which has members Group1a and Group1b. Group1b itself contains groups Group1ba and Group1bb.
I would like all groups returned, not just Group1 and Group1b.
Hope this makes sense?
Any help would be much appreciated!