I am using the Get-AdGroupMember -recursive powershell command to list users in groups, and users in nested groups.
Can I output the name of the nested group as well in the output results?
Ie User A is in Group A, User B is in Group B, User C is in Group C
Group C is in Group B, and Group B is in Group A. User C correctly appears as having group membership in Group A, but it's not obvious initially without drilling down through the groups.
In my 'realworld' case there are ~seven groups at the top level, then five/six at the next level, so I have to look in each one to find the user. Some of the results coming back are three nested groups down, and it takes a bit of digging to work out what group the user is actually in.
Thanks