-
Notifications
You must be signed in to change notification settings - Fork 107
SPSearchServiceSettings
Yorick Kuijs edited this page Feb 19, 2019
·
7 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
IsSingleInstance | Key | String | Specifies the resource is a single instance, the value must be 'Yes' | Yes |
PerformanceLevel | Write | string | Specifies the performance level of the crawler | Reduced, PartlyReduced, Maximum |
ContactEmail | Write | string | Specifies the contact email used by the crawler | |
WindowsServiceAccount | Write | PSCredential | Sets the windows services for search to run as this account | |
InstallAccount | Write | PSCredential | POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5 |
Type: Distributed Requires CredSSP: No
This resource is responsible for configuring settings for the search service, like the crawler performance level. All settings are farm wide settings, which is why this resource should only be used once in each configuration.
This example creates a new search service app in the local farm
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount,
[Parameter(Mandatory = $true)]
[PSCredential]
$SearchAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost {
SPSearchServiceSettings SearchServiceSettings
{
IsSingleInstance = "Yes"
PerformanceLevel = "Maximum"
ContactEmail = "[email protected]"
WindowsServiceAccount = $SearchAccount
PsDscRunAsCredential = $SetupAccount
}
}
}
- Home
- Getting Started
- Pre-requisites
- Installing the module
- Exporting SharePoint Configuration
- Creating Configuration Files
- Pre-created Examples
- Creating an Azure development environment
- Understanding Resources & Syntax
- Remote PowerShell Authentication
- Contributing to SharePointDsc
- Other useful modules for SharePoint DSC configurations