I was wondering if there is a way to stipulate which version of Powershell is initialised (32bit\64bit) on a 64bit windows 2008 server using c# and the the system.automation namespace?
The reason for this is I have created a ps1 script that uses a com object which will only work in a 32bit Powershell environment.
I am not aware of a way to specify 32bit\64bit during runspace creation but may be wrong. Any thoughts or suggestions?
Thanks