Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Active Directory Powershell command error for some users

$
0
0

Hello,

I use following command to get a user DL membership using active directory module for PowerShell

Get-ADPrincipalGroupMembership username |select name,group* | ft  -autosize . This command in return gives me output for all the DL membership of the user that I have rqueried. How ever for some of my users when I run this command, I get below error:

PS C:\Users\adm> Get-ADPrincipalGroupMembership userabc |select name,group*
| ft  -autosize
Get-ADPrincipalGroupMembership : The server was unable to process the request d
ue to an internal error.  For more information about the error, either turn on
IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from th
e <serviceDebug> configuration behavior) on the server in order to send the exc
eption information back to the client, or turn on tracing as per the Microsoft
.NET Framework 3.0 SDK documentation and inspect the server trace logs.
At line:1 char:31
+ Get-ADPrincipalGroupMembership <<<<  userabc |select name,group* | ft  -autos
ize
    + CategoryInfo          : NotSpecified: (userabc:ADPrincipal) [Get-ADPrinc
   ipalGroupMembership], ADException
    + FullyQualifiedErrorId : The server was unable to process the request due
    to an internal error.  For more information about the error, either turn
  on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or
  from the <serviceDebug> configuration behavior) on the server in order to
 send the exception information back to the client, or turn on tracing as     p
er the Microsoft .NET Framework 3.0 SDK documentation and inspect the ser    ve
r trace logs.,Microsoft.ActiveDirectory.Management.Commands.GetADPrincip    alG
roupMembership

***********************

I get the above error output only for some users!!!


bws


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>