Get-ADGroupMember -Recursive does not return members of Primary Groups
If I have:
* A group "ParentGroup"
* A group, "NestedGroup", that is a member of "ParentGroup" group
* A user "UserA" who is a member of "NestedGroup"
* A user "UserB" whose primary group is "NestedGroup"
And I run from PowerShell version 4 with the ActiveDirectory module on Windows 8.1:
Get-ADGroupMember -Identity "ParentGroup" -Recursive
Only "UserA" will be returned. "UserB" and any user who is a member of "NestedGroup" by virtue of it being their primary group will not be returned.
dseget.exe behaves as expected.
Chris Salzgeber commented
I'm looking to fix this and other issues on my separate UserVoice thread found here: https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/13350033-open-source-the-activedirectory-powershell-module
Thanks DB, I am going to ping you offline with a few more questions on this issue.