Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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: http://geekswithblogs.net/bjackett/archive/2009/04/24/the-power-of-powershell-and-sharepoint-enumerating-sharepoint-permissions-and.aspx. 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
1  
Great reference - thanks @lori! –  Wade Henderson Jun 22 '11 at 12:49
add comment

Your Answer

 
discard

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.