I have a requirement currently to generate all the Sharepoint site in a Web application with the following information: Site URL Site Name Site Collection Administors : ID or name Members in the group named 'owners'

As such, if anyone has a script or a reference please share it. I'd appreciate it.

1 Answer 1



Get-SPWebApplication "http://server-name:8080"|Get-SPSite -limit ALL|Get-SPWeb -limit ALL|Select-Object Title,Url,AssociatedOwnerGroup

This will give you Title, Url and the Associated Owner Group for the site... You can than reference the powershell script:
PowerShell Script for SP2010 to pull Farm and Site Collections Administrators

Try merging these two and you can get the results, let me know if you are not able to figure out exact!

  • @ Arsalan Adam Khatri Thanks a lot for the reply, however the requirement is something different. I have be asked to generate an excel report with the following fields. Site URL Site Name Site Collection Administrators Members in the 'owners' group... if you have a script for that, kindly share it...
    – Palz
    Apr 26, 2013 at 9:32
  • 2
    Finally got the scripts referring the below links: santoshksp.wordpress.com/2012/10/19/27 techtrainingnotes.blogspot.com/2010/12/…
    – Palz
    May 9, 2013 at 9:19
  • Great, kindly post the complete script as answer and mark it correct.. It may help others! May 9, 2013 at 11:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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