How to export a detailed list of Active Directory users' “Member of” tab?
Open Power Shell
type:
Get-ADPrincipalGroupMembership Username | Select Name
Where Username is the name of the user you're querying.
Example:
PS F:\> Get-ADPrincipalGroupMembership panditu | Select Name
Now if you need to export this list to CSV or TXT:
Get-ADPrincipalGroupMembership panditu | Select Name >c:\panditu.txt
The output file will be in C:\ Drive.
Happy PShelling!
Thanks & Regards,
Mail ID: pandit.umesh@hotmail.com
Skype ID: pandit.umesh
No comments:
Post a Comment