I was recently asked to help with a PowerShell script that will extract all user permissions from a SharePoint 2010 Site to a CSV.
A SharePoint site went down and we needed to recover it. Most of the issues are already sorted out but we now need to move all the permissions to a new server.
By using PowerShell it is very easy to accomplish this. I have modified the code provided by CodeDynamics to run through all users and then execute the provided code. I have also changed the output to append all lines to the CSV. You will have to provide a site URL and location for the CSV file inside the script. Once you run this it will export all permissions from SharePoint 2010 Site to a CSV file. You can download the script from the download button at the bottom of this post.
If you are searching for a replacement of the normal SharePoint 2010 PowerShell you can have a look at PowerGui. It is very easy to use and you can also download Add-Ons that support SharePoint 2010.
Thanks for visiting my blog, and I hope you find it easy to extract user permissions from a SharePoint 2010 Site to a CSV file. You can contact me on Skype @ corvitech