Export (0) Print
Expand All
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

Set-SPEnterpriseSearchService

 

Applies to: SharePoint Server 2013 Standard, SharePoint Server 2013 Enterprise, SharePoint Foundation 2013

Topic Last Modified: 2014-03-10

Sets the properties of a search service for a farm.

Set-SPEnterpriseSearchService [[-Identity] <SearchServicePipeBind>] [-AcknowledgementTimeout <String>] [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-ConnectionTimeout <String>] [-ContactEmail <String>] [-IgnoreSSLWarnings <String>] [-InternetIdentity <String>] [-PerformanceLevel <String>] [-ProxyType <String>] [-ServiceAccount <String>] [-ServicePassword <SecureString>] [-WhatIf [<SwitchParameter>]]

This cmdlet updates properties of a search service for a farm.

 

Parameter Required Type Description

Identity

Optional

Microsoft.Office.Server.Search.Cmdlet.SearchServicePipeBind

Specifies the search service to update.

The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid search application name (for example, SearchService1); or an instance of a valid SearchService object.

AcknowledgementTimeout

Optional

System.String

Specifies the time in seconds that the crawl component will wait for request acknowledgement while connecting to other services.

The type must be string input that can be parsed to an integer value.

AssignmentCollection

Optional

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

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.

NoteNote:
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.

Confirm

Optional

System.Management.Automation.SwitchParameter

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters

ConnectionTimeout

Optional

System.String

Specifies the time in seconds that the crawl component waits while connecting to other services.

The type must be string input that can be parsed to an integer value.

ContactEmail

Optional

System.String

Specifies an e-mail address to which external site administrators can write if problems occur when the site is being crawled.

The type must be a valid e-mail address, in the form MyAddress@mycompany.com.

IgnoreSSLWarnings

Optional

System.String

Specifies that the search service will ignore Secure Sockets Layer (SSL) certificate name warnings. The default value is False.

The type must be a string that can be cast to a Boolean value, for example, True or False.

InternetIdentity

Optional

System.String

Specifies the value that the crawler sends in the headers of its HTTP requests to sites when it fetches their pages.

PerformanceLevel

Optional

System.String

Specifies the relative number of threads for the crawl component performance.

The type must be one of the following values: Reduced, PartlyReduced, or Maximum. The default value is Maximum.

Reduced: Total number of threads = number of processors, Max Threads/host = number of processors.

Partly Reduced: Total number of threads = 16 times the number of processors , Max Threads/host = 4 plus the number of processors. Threads are assigned Below Normal priority.

Maximum: Total number of threads = 32 times the number of processors, Max Threads/host = 4 plus the number of processors. Threads are assigned Normal priority.

ProxyType

Optional

System.String

Specifies whether the search service uses a proxy server or connects directly when crawling content. The default value is Direct, (No proxy server is used).

The type must be one of the following values: Direct or Proxy.

ServiceAccount

Optional

System.String

Specifies the user account or service account to use for running the search service. The type must be a valid account name on the domain, in the form Domain\user name or user name.

When this parameter is used, the ServicePassword parameter must also be specified.

NoteNote:
After using this cmdlet to change the service account, you must restart the SharePoint 2013 Search Host Controller service on servers hosting any of the following search components: the index component, query processing component, search administration component, content processing component, or analytics processing component.

ServicePassword

Optional

System.String

Specifies the password for the service account specified in ServiceAccount.

The type must contain the domain password to the account specified in the ServiceAccount parameter.

WhatIf

Optional

System.Management.Automation.SwitchParameter

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

------------------EXAMPLE------------------

$password = Read-Host -AsSecureString**********
Set-SPEnterpriseSearchService -IgnoreSSLWarnings $true -ServiceAccount contoso\adminAccount -ServicePassword $password

This example configures the search service to ignore SSL warnings, and changes the service account for the search service.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.