Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, June 20, 2012 4:11 PM
I need to find out who the site owners are for about 50 sharePoint sites. We need to contact site owners.
Is there a powershell script that will tell me who site owners are for all of my sites.
I have tried get-spweb http://site/subsite | format-table -property URL, owner, quota
This only gives me the url though, The site field has no data, nor does the quota (don't need quota, this was just added as a test)
Thanks
LSTalbot
All replies (4)
Wednesday, June 20, 2012 4:42 PM âś…Answered | 2 votes
$webApp = Get-SPWebApplication("http://fabrikam")
foreach ($site in $webApp.Sites)
{
write $site | format-table -property Url,Owner,Quota
}
http://sharepoint.nauplius.net
Wednesday, June 20, 2012 4:39 PM
Hi,
try this post
Regards,
Fadi Abdulwahab, SharePoint Consultant
http://blogs.msdn.com/b/fabdulwahab
http://sqlgoogler.blogspot.com/
Friday, June 22, 2012 9:57 AM
Only site collection has owners. http://site/subsite is a web, its owner is the owner of its parent site collection.
Jinchun Chen
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff AT microsoft.com(Please replace AT with @)
Tuesday, August 25, 2015 1:54 PM
Make sure you're logged in or running the SharePoint management shell as THE farm account to ensure this command works properly, otherwise you may only see site URLs in the list and no owner or quota details.