Error Executing specific cmdlet via PS Remote

Welcome Forums General PowerShell Q&A Error Executing specific cmdlet via PS Remote

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
6 months, 3 weeks ago.

  • Author
    Posts
  • #99802

    Participant
    Points: 22
    Rank: Member

    Hello everyone,

    I'm trying to execute *-ADPrincipalGroupMembership cmdlet via PS Remote session but getting this below mentioned error:

    The operation being requested was not performed because the user has not been authenticated
    + CategoryInfo : NotSpecified: (ashok:ADPrincipal) [Get-ADPrincipalGroupMembership], ADException
    + FullyQualifiedErrorId : ActiveDirectoryServer:1244,Microsoft.ActiveDirectory.Management.Commands.GetADPrincipalG
    roupMembership

    However the ps remoting to the DC is done with an enterprise admin priv.
    Execution policy has been set to Remotesigned and the client is added in trusted host list.
    Rest of the AD-cmdlets are running properly through PS Remote session.
    No problem while executing the cmdlet at server's PS console with same user priv.

  • #99826

    Participant
    Points: 160
    Helping Hand
    Rank: Participant

    Sounds like you might be running into the classic double hop problem.

    You'll probably have to manually specify credentials on the AD commands.

The topic ‘Error Executing specific cmdlet via PS Remote’ is closed to new replies.