SharePoint Foundation 搜索-PowerShell

简介: 1. 显示搜索服务信息Get-SPSearchService2. 显示搜索服务实例Get-SPSearchServiceInstance3.

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

相关文章
|
安全 存储
SharePoint的安装和配置-PowerShell
1. 引入SPModule组件 Import-Module SPModule.misc Import-Module SPModule.setup 需要将执行策略修改为不限制 2.
974 0
|
12月前
|
Windows
Powershell 重新排列去重 Windows环境变量
【9月更文挑战第13天】本文介绍如何使用PowerShell对Windows环境变量进行重新排列和去重。首先通过`$env:`访问环境变量,接着使用`-split`命令分割路径,再利用`Select-Object -Unique`去除重复项。之后可根据需要对路径进行排序,最后将处理后的路径组合并更新环境变量。注意修改环境变量前应备份重要数据并了解潜在影响。
337 10
|
11月前
|
监控 关系型数据库 MySQL
PowerShell 脚本编写 :自动化Windows 开发工作流程
PowerShell 脚本编写 :自动化Windows 开发工作流程
429 0
|
存储 Ubuntu Linux
windows可以安装Ubuntu,ubuntu上也可以安装Powershell
powerhsell除了可以在windows上使用外,还可以在Ubuntu上部署开发环境。下面介绍Ubuntu上安装powershell的方法。
388 0