I'm writing a small web application that will run some powershell scripts on the localhost to create new IIS sites etc. I have the script working fine in ISE 64 bit but when trying to run them in 32 bit I'm getting errors like:
Get-ChildItem IIS:\Sites
Get-ChildItem : Cannot retrieve the dynamic parameters for the cmdlet. Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: 80040154.
I've tried downloading the x86 version of the snap-in but the installer stops telling me to use 'Programs and Features' to install it which I've tried but cant find what's not enabled that should be.
This is an issue as the .NET application seems to run the scripts in the 32 bit powershell so my 2 questions are:
- Can I run these scripts in 64 bit from .NET
- Can I install these snap ins in 32 bit on a 64 bit OS