I am trying to see which groups are inside of a group. For example:
ACCCLK_JC
is the job code for ACCCLK
. It contains roughly 17 groups. I wish to see each group inside this group. This is also known as nested groups or subgroups.
Asked
Active
Viewed 40 times
0
1 Answers
1
While typing this question out I discovered the answer.
Get-ADPrincipalGroupMembership $Group | Select-Object -ExpandProperty name

David
- 891
- 1
- 8
- 18
-
A shorter way is to pipe to a ForEach loop and only specify the property to expand, such as `Get-ADPrincipalGroupMembership $Group | % Name` – TheMadTechnician May 19 '16 at 17:59