Forum Discussion
Baron164
Jul 14, 2022Brass Contributor
How do I pull properties of group members using get-adgroupmember?
I have a specific group that has multiple groups as members. I need to pull a list of the member groups along with the gidNumber attribute for each of those groups. I can run the following line but w...
- Jul 14, 2022
Gidnumber is not present as output of the Get-ADGroupMember, it is present when running (Get-ADgroup executives -properties *).member (or .members)
Jul 14, 2022
Gidnumber is not present as output of the Get-ADGroupMember, it is present when running (Get-ADgroup executives -properties *).member (or .members)
- Baron164Jul 14, 2022Brass Contributor
Harm_Veenstra
Thanks, I ended up doing this and it seems to be working.(Get-ADgroup Executives -properties *).member | Get-ADGroup -Properties DisplayName,gidNumber | select DisplayName,gidNumber- Jul 15, 2022Nice, you could do (Get-ADgroup Executives -properties Member) to speed things up a little, that selects the normal values and the member one as extra. Please mark my answer as solution to mark this as solved.