How to use powershell 32 bit from RunScript(Powershell)

(Mohan Krishna) #1

I need to connect to Oracle Database from the Octopus Powershell Add script
When i do that i am receiving a bad image exception when i tried to do this manually from the32bit powershell in the server it is working as expected.

Could you please provide me the solution on how to force Powershell step in Octopus Process to work with 32Bit powershell

(Justin Walsh) #3

Hi @Mohan_Krishna!

While there’s no way to call the 32 bit version of powershell directly from Octopus, but you can achieve this by running a script that calls the 32 bit version of powershell to execute your intended process.

%SystemRoot%\SysWOW64\WindowsPowerShell\v1.0\powershell.exe script.ps1

Hope this helps!

(Mohan Krishna) #4

Hi Walsh,

Thanks for your quick response, I will try the way as suggested by you.

(system) closed #5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.