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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
Are you able to post a simple example? I don't get what you mean with "in different csv files".