Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Get-ADGroupMember limitations

$
0
0

Hi All,

I am trying to run the following query:

get-adgroup -Filter * -SearchBase "OU=Test,dc=domain,dc=com" | get-adgroupmember | get-aduser -Properties * | Select Name,postalCode

and get the following error: Get-ADUser : A referral was returned from the server

Test OU contains Universal Distribution Groups with memebers from different domains in the same forest.

So I've figured running agains GC server should fix it but I've hit a limitation:

get-adgroup -Server dcgc01.domain.com:3268 -Filter * -SearchBase "OU=Test,dc=domain,dc=com" | get-adgroupmember | get-aduser -Properties * | Select Name,postalCode

and got the following error: Get-ADGroupMember : The operation is not supported on Global Catalog port.

It's Server 2008R2 with PS version 2

Thank you,

Naz



Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>