Set-SPEnterpriseSearchAdministrationComponent

设置搜索服务应用程序管理组件的属性。

语法

Set-SPEnterpriseSearchAdministrationComponent
   [[-Identity] <AdminComponentPipeBind>]
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-Force]
   [-SearchApplication <SearchServiceApplicationPipeBind>]
   [-SearchServiceInstance <SearchServiceInstancePipeBind>]
   [-StoragePath <String>]
   [-WhatIf]
   [<CommonParameters>]

说明

Set-SPEnterpriseSearchAdministrationComponent cmdlet 可更新搜索服务应用程序 AdministrationComponent 对象的属性。

有关搜索 cmdlet 的权限和最新信息,请参阅联机文档 https://go.microsoft.com/fwlink/?LinkId=163185

示例

--------------------示例---------------------

$ssa = Get-SPEnterpriseSearchServiceApplication "Search Service Application" 
 $admin = Get-SPEnterpriseSearchAdministrationComponent -SearchApplication $ssa
 $admin | Set-SPEnterpriseSearchAdministrationComponent -SearchServiceInstance SP02 -Force

此示例将管理组件移动到其他服务器。

参数

-Confirm

提示你在运行 cmdlet 之前进行确认。

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Force

指定必须将管理组件移动到新搜索服务实例。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Identity

指定要更新的管理组件。

类型必须是 GUID) (有效名称,例如 12345678-90ab-cdef-1234-567890bcdefgh;或有效的 AdminComponent 对象的实例。

Type:AdminComponentPipeBind
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SearchApplication

指定包含管理组件的搜索应用程序。

键入的值必须是 12345678-90ab-cdef-1234-567890bcdefgh 形式的有效 GUID;有效的搜索应用程序名称(如 SearchApp1);或有效 SearchServiceApplication 对象的实例。

Type:SearchServiceApplicationPipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SearchServiceInstance

指定用于承载管理组件的搜索服务实例。

键入的值必须为 12345678-90ab-cdef-1234-567890bcdefgh 形式的有效 GUID;有效的搜索服务器名称(如 MyQueryServer);或有效 SearchServiceInstance 对象的实例。

Type:SearchServiceInstancePipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-StoragePath

指定用于存储管理组件数据的路径。 路径必须包含有效的文件共享,并使用有效的注册表字符。

键入的值必须为以下某一形式的有效路径:

  • C:\folder_name

  • \\server_name\folder_name

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WhatIf

显示在 cmdlet 运行时发生的情况。 此 cmdlet 未运行。

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-工作分配

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

输入

Microsoft.Office.Server.Search.Cmdlet.AdminComponentPipeBind

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

输出

System.Object