This PS command is only returning 10 out of 12 groups that the user is member of. Anyone know why that will be?
Get-ADUser -Identity username -Properties memberOf | Select -ExpandProperty memberOf > C:\user.csv
This PS command is only returning 10 out of 12 groups that the user is member of. Anyone know why that will be?
Get-ADUser -Identity username -Properties memberOf | Select -ExpandProperty memberOf > C:\user.csv
To get the complete list i would use:
Get-ADPrincipalGroupMembership -Idendtity username | Select-Object name | Export-CSV c:\membership.csv