# Error Executing specific cmdlet via PS Remote

**URL:** <https://forums.powershell.org/t/error-executing-specific-cmdlet-via-ps-remote/10592>\
**Category:** PowerShell Help\
**Created:** [April 26, 2018, 3:33am UTC](https://forums.powershell.org/t/error-executing-specific-cmdlet-via-ps-remote/10592 "2018-04-26T03:33:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samratchakraborty](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@samratchakraborty](https://forums.powershell.org/u/samratchakraborty)\
**Post date:** [April 26, 2018, 3:33am UTC](https://forums.powershell.org/t/error-executing-specific-cmdlet-via-ps-remote/10592/1 "2018-04-26T03:33:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ta11ow](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/ta11ow/32/131_2.png) [@ta11ow](https://forums.powershell.org/u/ta11ow)\
**Post date:** [April 26, 2018, 6:57am UTC](https://forums.powershell.org/t/error-executing-specific-cmdlet-via-ps-remote/10592/2 "2018-04-26T06:57:17Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:35pm UTC](https://forums.powershell.org/t/error-executing-specific-cmdlet-via-ps-remote/10592/3 "2024-05-16T20:35:10Z")

</div>


