Reprovision sharepoint search service

Reprovision sharepoint server search service when there is a situation where you find status of sharepoint server search service in stopping state. When there is an issue in search service application and its component due to which sharepoint search is not working. You need to restart service sharepoint server search. While restart, you find the sharepoint server search service stuck stopping state. In that case this post is helpful.

Advertisements

Restart sharepoint server search service

Run below script to restart or reprovision sharepoint server search service.

Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue
$SearchServiceInstance = Get-SPEnterpriseSearchServiceInstance -Identity "WIN-Q2REPGHF9DU"
Start-SPEnterpriseSearchServiceInstance -identity $SearchServiceInstance # Wait for search service instance to come online
do {$online = Get-SPEnterpriseSearchServiceInstance -identity $SearchServiceInstance; Write-Host "Waiting for service: " $online.Status}
until ($online.Status -eq "Online")
Advertisements

Once script started running, you will find the details as seen in figure below.

sharepoint server search service status stopping
Advertisements

The service sharepoint server serach will be stopped first, then will chanage to state starating and finally will come to status as Started.

sharepoint server search service
Advertisements
Advertisements


Categories: Service Application, service application in sharepoint, SharePoint 2019, sharepoint search, sharepoint server, sharepoint services

Tags: , , , , , , ,

1 reply

Trackbacks

  1. Degraded index partition yellow warning | SharePointTechnicalSupport

Discover more from SharePointTechnicalSupport

Subscribe now to keep reading and get access to the full archive.

Continue reading