Reputation: 755
I am logged onto a domain "A" server.
Although using this command, I have fetched AD group data for "B" domain.
Get-ADGroup -Server B | select distinguishedname"
Can I still run the below command while logged on to "A" domain, to fetch Group members name for an AD group that exists in B domain?
Get-ADGroupMember -Identity "SAMAccountName_B_Domain" | select name
Upvotes: 1
Views: 71
Reputation: 13207
You would need to specify the Server again:
Get-ADGroupMember -Server B -Identity "SAMAccountName_B_Domain" | select name
Upvotes: 4