title: Get-ADPrincipalGroupMembership An unspecified error has occurred
body: <p>I am getting errors with Get-ADPrincipalGroupMembership command on Windows 10 (x64) machine. I have installed the required RSAT- 'Active directory Domain service and Lightweight Directory service tools' and 'Server manager' dependencies as specified int <a href="https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/features-on-demand-non-language-fod#remote-server-administration-tools-rsat" rel="nofollow noreferrer">this</a> document.  I am able to execute Get-AdUser and see the results but    Get-ADPrincipalGroupMembership is throwing below error. </p>
  
  <pre><code>PS C:\Users\JYOTHI&gt; Get-ADPrincipalGroupMembership jyothi
  Get-ADPrincipalGroupMembership : An unspecified error has occurred
  At line:1 char:1
  + Get-ADPrincipalGroupMembership gapalani
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (jyothi:ADPrincipal) [Get-ADPrincipalGroupMembership], ADException
      + FullyQualifiedErrorId : ActiveDirectoryServer:0,Microsoft.ActiveDirectory.Management.Commands.GetADPrincipalGroupMembership
  </code></pre>
  
  <p>I can try the other way </p>
  
  <pre><code>(Get-Aduser jyothi -Properties MemberOf | Select MemberOf).MemberOf
  </code></pre>
  
  <p>but like to know what is the fix for Get-ADPrincipalGroupMembership</p>