Re-initializing SPService instance

In case the SPService is crashing and needs to be restarted this is a useful SP PowerShell snippet:

Get-SPServiceInstance

# Find the id for the distributed cache and use as the Guid in the next row
$serviceInstance = Get-SPServiceInstance | where {$_.ID -eq ""}
$serviceInstance.Unprovision()
$serviceInstance.Provision()

Where <Service_ID> is the Guid of the service.

manuel11g

Leave a Reply