Как выполнить командлеты WebAdministration на Powershell x86 - PullRequest
0 голосов
/ 20 апреля 2020

Я пытаюсь выполнить командлет Get-Website в Powershell (x86) в Windows Server 2012 R2 Standard 64-разрядная операционная система. Я получаю следующую ошибку:

$webSite1 = Get-Website -Name "Default Web Site"
Get-Website : Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F B2E1-6AF00DC944A6} failed
due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
At line:1 char:14
+ $webSite1 = Get-Website -Name "Default Web Site"
+              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Get-Website], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.IIs.PowerShell.Provider.GetWebsite Command

Может кто-нибудь подсказать мне, как выполнить эти команды или какой-либо альтернативный способ управления сайтами IIS с помощью PowerShell?

...