Windows PowerShell Snap-In for IIS fails on 32-bit?
问题 I'm trying to write a PowerShell script that will automate my IIS website deployments. I'm trying to run the scripts on my Windows Server 2008 R2 machine, under 32-bit in: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe Whenever I run a WebAdministration command such as this: Get-Website -Name "MYWebsite" I get an error like this: Get-Website : Retrieving the COM class factory for component with CLSID {688EEE E5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: