Configure the Crawl Account for Enterprise Search

Scenario/Problem: You need to configure the crawl account for the Enterprise Search Service.

Solution: Use the Set-SPEnterpriseSearchService cmdlet with the crawl account parameters.

You may set the crawl account information for the search service by using the ServiceAccount and ServicePassword parameters with the Set-SPEnterpriseSearchService cmdlet, as shown in Listing 13.4.

Listing 13.4. Configuring the Search Service Crawl Account

Set-SPEnterpriseSearchService-Identity 9e19864d-8b4b-4fda-bcb1-10645457ad70-ServiceAccount "SP\SharePointCrawl"-ServicePassword (ConvertTo-SecureString -asplaintext -force -string "SharePoint1")

The password needs to be a secure string; therefore, the ConvertTo-SecureString ...

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.