Start a Service Instance


Scenario/Problem: You need to start a specific service instance.


Solution: Use the Get-SPServiceInstance cmdlet to assign a variable the results using the -Identity parameter, and then use Start-SPServiceInstance using that variable.

The Start-SPServiceInstance cmdlet starts the specified service on the current server. You can provide the identity directly to the cmdlet or use a variable, as shown in Listing 6.9.

Listing 6.9. Starting a Service Instance


$serviceInst = Get-SPServiceInstance -Identity 5fedc699-7810-4157-9c59-
19f7d6e67e38
Start-SPServiceInstance $serviceInst


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.175.182