Get-ADPrincipalGroupMembership

Elazara Arbiv 161 Reputation points
2020-11-02T08:36:58.183+00:00

That I'm running the command Get-ADPrincipalGroupMembership On dc servers, the command succeeds .
But on other servers I get the following error:
36774-snip-20201102103205.png

Anyone have an idea how to solve?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,662 questions
0 comments No comments
{count} votes

8 answers

Sort by: Most helpful
  1. Anonymous
    2020-11-02T12:56:19.137+00:00

    You must specify the server parameter when you get this error.

    Get-ADPrincipalGroupMembership myuser -Server my-dc01

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  2. Elazara Arbiv 161 Reputation points
    2020-11-02T13:25:14.517+00:00

    Unfortunately it did not help

    0 comments No comments

  3. Thameur-BOURBITA 33,011 Reputation points
    2020-11-02T17:58:16.323+00:00

    Hi,

    Check on which DC are you connected for authentication set logonserver try to select a global catalog and use the command :

    GET-ADprincipalGroupMembership -Server domaincontrollerName -Credential 
    

    Please don't forget to mark this reply as answer if it help you to fix your issue

    0 comments No comments

  4. Elazara Arbiv 161 Reputation points
    2020-11-03T06:15:59.29+00:00

    37009-snip-20201103081405.png

    Am I doing it right?

    0 comments No comments

  5. Thameur-BOURBITA 33,011 Reputation points
    2020-11-03T12:06:31.97+00:00

    Hi,

    You can specify the credential :

    $Cred = Get-credential
    
    GET-ADprincipalGroupMembership -Server domaincontrollerName -Credential $Cred
    

    Please don't forget to mark this reply as answer if it help you to fix your issue

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.