title: Get-ADGroupMember : A referral was returned from the server
body: <p>I am getting a referral returned from the server when I run any command against another object in another domain than the machine it is connected to. </p>
  
  <p>So I login with ID located on domain A and launch PowerShell with Administrator account residing in Domain B so when I try to run <code>Get-adgroupmember identity XXX  -server domainB</code> I receives referral error, even when I use server name or DC with Port number.. this issue start happening recently.</p>
  
  <pre class="lang-none prettyprint-override"><code>Get-ADGroupMember : A referral was returned from the server
  At line:1 char:1
  + Get-ADGroupMember -identity "XXXXX"  -server
  XX.XX.XX ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~~~
      + CategoryInfo          : NotSpecified: (nb it microbank admi:ADGroup) [Ge
     t-ADGroupMember], ADException
      + FullyQualifiedErrorId : A referral was returned from the server,Microsof
     t.ActiveDirectory.Management.Commands.GetADGroupMember
  </code></pre>