I need assistance on getting a powershell script that would enable me pull data of all AD users and their various group they belong to .csv file.
First of all, get the Quest ActiveRoles Server Commandlets here.
Then the following script should give you a start. I am using Excel to store the info, which you can save as a .csv file. Makes it a little easier with the looping and saving of values.
You should be able to tune this up to meet your exact needs hopefully.