When one of our tentacles invokes the “Windows Service - Start” public step template, we get this error:
Start-Service : Cannot find any service with service name ‘System.ServiceProcess.ServiceController’.
At C:\StartDeliverySvc.ps1:9 char:18
-
start-service <<<< $serviceInstance
- CategoryInfo : ObjectNotFound: (System.ServiceProcess.ServiceController:String) [Start-Service], Servic
eCommandException - FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.StartServiceCommand
- CategoryInfo : ObjectNotFound: (System.ServiceProcess.ServiceController:String) [Start-Service], Servic
I took the script from the template and tried to manually run it in powershell on the target box. Same error (I double checked the value of service name and made sure it was set).
Please advise.
Octopus 2.5.5.318
PowerShell 2.0
Windows 2008