Good Morning,
I found this site while googling how to list groups and their members in AD. I originally found this thread -
http://www.techexams.net/forums/off-topic/39040-list-users-groups-ad.html But it didn't seem to work, so I wanted to frame my situation and what I'm trying to do.
I'm trying to automate my user creation for the company I work for. So far I have everything working well except for the MemberOf tab. Basically in a perfect world I would love to have a command that would say please copy the groups from USER1 to NEWUSER's MemberOf tab.
I haven't been able to find a command that will do that (if there is one let me know

) So I thought I could export a list of all groups and their members. That way I could filter by username and get all of the groups they are a part of to add them through a script.
Basically for the output I would just want a CSV that would look something like this:
Group1
User1
Group1
User2
Group1
User3
Group1
User4
Group2
User2
Group2
User4
Group3
User1
Group3
User4
Now I will preface this with....I'm REALLY new to this, so I apologize if this seems like a ridiculous question.

And I appreciate any direction you can point me in.

~Michael