四度空间

专注.NET、SharePoint

SharePoint Foundation 搜索-PowerShell

1. 显示搜索服务信息

Get-SPSearchService

2. 显示搜索服务实例

Get-SPSearchServiceInstance

3. 获取指定搜索服务实例

$ssInstance = Get-SPSearchServiceInstance
-Identity 4bbab1b2-a427-4e75-be8f-daabbdba6f23

4. 配置爬网账户

Set-SPSearchService –Identity 7c6fcca5-b3d4-4ecb-9d41-11f1eb15485f
-CrawlAccount "SP\SharePointCrawl"
-CrawlPassword (ConvertTo-SecureString -asplaintext -force
 -string "SharePoint1")

5. 配置最大备份时长

Set-SPSearchService
–Identity 7c6fcca5-b3d4-4ecb-9d41-11f1eb15485f
–MaxBackupDuration 1440

6. 配置搜索服务执行级别

Set-SPSearchService
–Identity 7c6fcca5-b3d4-4ecb-9d41-11f1eb15485f
–PerformanceLevel Reduced

 可用参数:Reduced、PartlyReduced、Maximum

posted on 2013-07-04 19:28  月飘冥  阅读(118)  评论(0编辑  收藏  举报

导航