SharePoint By Yagya Shree

How to find specific user as a site collection administrator in entire sharepoint farm

leave a comment »

Please run below script in a sharepoint server using farm admin account

Get-SPWebApplication | select -expandproperty Sites | %{get-spsite $_} | ?{$_.owner -like “domainname\userid”} | select URL,Owner | out-file “C:\OwnedSites.txt” -Width 200

Advertisements

Written by Yagyashree

July 31, 2013 at 12:38 am

Posted in sharepoint

Tagged with , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: