Chasing Referrals

Welcome Forums General PowerShell Q&A Chasing Referrals

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 7 years, 7 months ago.

  • Author
  • #6334

    Topics: 1562
    Replies: 0
    Points: 0
    Rank: Member

    by smcreamer at 2013-04-29 11:42:30

    Using the following command:

    Get-ADGroupMember "Enterprise Admins" | Get-ADUser -Properties DisplayName,Enabled,PasswordNeverExpires

    When members of Enterprise Admins are in a child domain (or at least I think so), I get the error:

    Get-ADUser : A referral was returned from the server.

    How do I force AD to retrieve the user object details for the child domains?

    by DonJ at 2013-04-29 14:16:04

    You're probably going to have to enumerate the users and get their home domains, and send the requests to those domains. Get-ADUser picks a domain controller in your logon domain, by default, and that can't resolve user requests for other domains' users. Parameters of the command let you target different domains.

The topic ‘Chasing Referrals’ is closed to new replies.