首页 > 解决方案 > 无法创建 com 对象 - Powershell

问题描述

以下是创建新对象(Powershell)时的消息

我尝试打开 Powershell

  1. 作为管理员
  2. 32 位 ISE
  3. 64 位 ISE

没有任何帮助

> New-Object : Retrieving the COM class factory for component with CLSID
> {00000000-0000-0000-0000-000000000000} failed due to the  following
> error: 80040154 Class not registered (Exception from HRESULT:
> 0x80040154 (REGDB_E_CLASSNOTREG)). At line:1 char:8
> + $obj = New-Object -ComObject Microsoft.SMS.Client -Strict
> +        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : ResourceUnavailable: (:) [New-Object], COMException
>     + FullyQualifiedErrorId : NoCOMClassIdentified,Microsoft.PowerShell.Commands.NewObjectCommand

标签: powershell-4.0sccm

解决方案


我能够找到替代方法来设置我之前尝试使用 com-object 设置的站点代码并解决问题。但仍然不确定上述方法有什么问题


推荐阅读