Tuesday, June 25, 2013

Export SharePoint 2007 Search Crawl History using PowerShell

Here is the PowerShell script to export Search crawl history in SharePoint 2007 using PowerShell:


    function global:Get-CrawlHistory($url)
     #Objects to get Crawl History
     $site = new-Object Microsoft.SharePoint.SPSite($url);
     $context = [Microsoft.Office.Server.Search.Administration.SearchContext]::GetContext($site);
     $history = new-Object Microsoft.Office.Server.Search.Administration.CrawlHistory($context);

     Write-OutPut $history.GetCrawlHistory()
     #Dispose site object
    #Call the function to get Crawl History
    Get-CrawlHistory -url "http://sharepoint.crescent.com" | Export-CSV "d:\Reports\CrawlLog.csv"
This gives data such as: CrawlType (2 - Increment, 1- FULL), ContentSourceID ( 4 - Local Crawls, 10 -People search), Status, Start Time, End Time, Success Count, Error Count, Warning Count of last 8 crawls.

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.

Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...