Get-ADGroupMember returns nothing while being completed successfully
- by Volodymyr
I've tried to list all of the members of one of the groups in AD, but nothing is returned, although the command is completed successfully. It neither works with group DN specified, instead of sAMAccountName.
Get-ADGroupMember "sAMAccountName" -Recursive | select name
See output below:
The following message appears if one views Members from dsa.msc
---------------------------
Active Directory Domain Services
---------------------------
Some of the object names cannot be shown in their user-friendly form.
This can happen if the object is from an external domain and
that domain is not available to translate the object's name.
---------------------------
OK
---------------------------
Can this be a reason for powershell not returning results?
Any thoughts?
UPD: this doesn't seem to be permissions issue, since dsquery does return group members.