SharePoint By Yagya Shree

Posts Tagged ‘collection

How to find site collection creation date

leave a comment »


Please run below script in SharePoint 2013 Management Shell

 

$w = Get-SPWeb https://this_is_Site_Collection_url

$w.Created

Create_date

Written by Yagyashree

July 17, 2017 at 11:28 pm

Posted in sharepoint

Tagged with , , , ,

SP2013: Find All search crawl Property

leave a comment »


Requirement:

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

 

Resolution:

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 https://sharepoint.contoso.com/sites/SP2013
$siteguid = $site.id
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: