SharePoint By Yagya Shree

Posts Tagged ‘collection

SP2013: Find All search crawl Property

leave a comment »


How to find all search crawl property in a TEXT or EXCEL file for a specific site collection using PowerShell



1st Phase:

Find the GUID for site collection by running below script from Windows PowerShell ISE on any of the sharepoint servers in farm.

Add-PSSnapin “Microsoft.SharePoint.PowerShell”
$site = Get-SPSite
$siteguid = $
echo $siteguid

2nd Phase

Once you got the GUID for site collection from phase 1, run below script

Add-PSSnapin “Microsoft.SharePoint.PowerShell”
$searchapp = Get-SPEnterpriseSearchServiceApplication
Get-SPEnterpriseSearchMetadataCrawledProperty -SearchApplication $searchapp -SiteCollection <Site_GUID> -limit All >C:\Temp\crawlproperty.csv

Written by Yagyashree

September 19, 2016 at 8:23 pm

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

Written by Yagyashree

July 31, 2013 at 12:38 am

Posted in sharepoint

Tagged with , ,

%d bloggers like this: