Octopus Deploy 2.6.5.1010 Powershell 5 April Preview

Hello,

Got a issue with deploying a service on a server what has powershell 5 April Preview in which it does not understand sc.exe command.

If i remove powershell 5 from the machine it works fine.

So is powershell 5 not supported?

Hi,

Thanks for reaching out. We had a problem with PS5 April Preview on another thread, which ended up in a bug submission to Microsoft which hasn’t been touched yet http://help.octopusdeploy.com/discussions/problems/34939 . Might not be 100% related though, but sets a precedent of issues with this version of Powershell.

What error are you getting exactly? Perhaps we can find a workaround for it. If possible send us a deployment log when running PS5 so we can check this out http://docs.octopusdeploy.com/display/OD/Get+the+raw+output+from+a+task

Thanks!

Dalmiro

Thanks for the reply.

The first thread does not represented same issue, no crashing of powershell for me.

my issue is that powershell 5 does not seem to understand the sc.exe command in the beforepostdeploy.ps1.

Regards

Chris

Raw.txt (2 KB)

Hi Chris,

You are currently trying to create the service with the name “App Updater Service”. Could you please try a value without spaces and let me know if it works? If it doesn’t, please send us the error log again.

Thanks,

Dalmiro