Thursday, 19 September 2013

PowerShell: Restart a SharePoint Service

Starting and stopping a service in PowerShell is pretty straight forward: Start-SPServiceInstance and Stop-SPServiceInstance

The tricky bit is passing in the correct parameter - the identity of the Service Instance.

The service can be found using Get-SPServiceInstance | Select TypeName, Id.

This will provide a list of the services and their corresponding Ids. You can then cut and paste the Guid into the appropriate command:

Start-SPServiceInstance -Identity <Guid>

No comments:

Post a comment