How to Stop Service Application using PowerShell with Identity
Service application stopping:
$serviceInstance = Get-SPServiceInstance | where {$_.ID -eq "076f00b8-1fc8-46b2-bd42-574d708b2763"}
$serviceInstance.Unprovision()
$serviceInstance.Provision()
$serviceInstance = Get-SPServiceInstance | where {$_.ID -eq "076f00b8-1fc8-46b2-bd42-574d708b2763"}
$serviceInstance.Unprovision()
$serviceInstance.Provision()
Comments
Post a Comment