Link to home
Start Free TrialLog in
Avatar of Manish Kumar
Manish Kumar

asked on

PowerShell script to fetch group membership of a user in AD

Hi All,

I need to fetch group membership of one user in AD with  it's nested groups in different csv files.
I need a PowerShell script
ASKER CERTIFIED SOLUTION
Avatar of Saakar
Saakar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Lionel MM
Did you check out some of the same question already answered on EE Here is one and here is another . The second one exports it to a CSV file.
DSquery to export member of Group

dsquery group -samid "Group Name" | dsget group -members | dsget user -display -email >C:\Groupname.csv

Open in new window

Are you able to post a simple example? I don't get what you mean with "in different csv files".