禁用连续爬网

Add-PSSnapin microsoft.sharepoint.powershell
$SSA =  Get-SPEnterpriseSearchServiceApplication
$SPContentSources = $SSA | Get-SPEnterpriseSearchCrawlContentSource | WHERE {$_.Type -eq "SharePoint"}
foreach ($cs in $SPContentSources)
{
  $cs.EnableContinuousCrawls = $false
  $cs.Update()
}

posted @ 2015-03-20 09:44  Jason.Bird  阅读(141)  评论(0编辑  收藏  举报