Get-ADDomainController, Get-ADUser, Get-ADComputer, Get-ADObject: A referral was returned from the server 1


When you are using Active Directory Powershell cmdlets such as Get-ADDomainController, Get-ADUser, Get-ADComputer, Get-ADObject, you may receive the following error message:

Such an exception is linked to the difficulty those commands have to work in a multi-domain environment, whether that multi-domain be a single forest with multiple child domains, various trust relationships.

Let’s imagine you have a forest with domains called Top, Child1 and Child2. If your user is Top\myadmin and your trying to get information for the domain controller dc1child1 in the child domain child1, you may want to issue the following command from a machine in the “Top” domain

The answer will be:

To circumvent this, you must specify a target server from the domain you want the object from. In our case, you will have to type,:

Here the name is repeated twice, as the object we are searching for is also the name of the server you’re asking to answer. But in such a case as a domain user, this would be:

Note that to find a correct Domain Controller for a given domain, Get-ADDomainController with the discover switch may be very helpful.


Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

One thought on “Get-ADDomainController, Get-ADUser, Get-ADComputer, Get-ADObject: A referral was returned from the server

  • Nadia

    HI, Do you know what is the backend process name that logs off windows user or windows? like winlogon.exe is process that work in backend when windows starts.