Re-initializing SPService instance

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


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

Where <Service_ID> is the Guid of the service.


Leave a Reply