SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a PowerShell script (or tool) to export a site's groups and group memberships to a text file.

These files would be used as backup for the current security configuration in case the settings were accidently mucked up, as well as for auditing misconfigured sites (e.g. only one site owner, public access granted inappropriately, etc.).

Does anyone know of any existing scripts to accomplish this task?

Are there any third party tools that can accomplish the same?

share|improve this question
up vote 2 down vote accepted

A friend of mine wrote a huge powershell script to do a lot of different functions around security. He has posted it to his blog here: If you look around line 73 you should see the part of the script that you are looking for to be able to enumerate SharePoint group members. Once you have this working, you can just pipe the results to a text file.

share|improve this answer
Great reference - thanks @lori! – Wade Henderson Jun 22 '11 at 12:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.