首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SCOM 2016 PowerShell

SCOM 2016 PowerShell
EN

Stack Overflow用户
提问于 2017-12-20 18:52:18
回答 1查看 475关注 0票数 0

我正在尝试使用Thinapp 5.2打包SCOM控制台2016。客户还希望使用SCOM的PowerShell部分。但是每当我启动SCOM Shell时,它都会给我一堆错误,告诉我它找不到某些.dll文件甚至更多。

我之前已经尝试过在VM上安装它,但它给出了相同的错误消息,所以Thinapp不会导致这些错误。

有人知道我应该去哪里看吗?

代码语言:javascript
复制
Import-Module : Cannot load Windows PowerShell snap-in C:\Program Files (x86)\System Center Operations Manager 2016\Powershell\OperationsManager\OM10.CoreCommands\Microsoft.EnterpriseManagement.Core.Cmdlets.dll because of the following error: Unable to load one or more of the requested types.  Retrieve the LoaderExceptions property for more information.

Loader Exceptions:
Could not load file or assembly Microsoft.EnterpriseManagement.Core, Version=7.0.5000.
, Culture=neutral, PublicKeyToken=31bf3856ad364e35 or one of its dependencies.
The system cannot find the file specified.

At C:\Program Files (x86)\System Center Operations Manager 2016\Powershell\OperationsManager\OperationsManager.psm1:1261 char:14
    + Import-Module <<<<  $psScriptRoot\OM10.CoreCommands\OM10.CoreCommands.psd1
    + CategoryInfo          : ResourceUnavailable: (:) [Import-Module], PSSnapInException
    + FullyQualifiedErrorId : PSSnapInLoadFailure,Microsoft.PowerShell.Commands.ImportModuleCommand
	
Import-Module : Could not load file or assembly file:///C:\Program Files (x86)\Systemcenter Operations Manager 2016\Powershell\OperationsManager\OM10.Commands\Microsoft.SystemCenter.OperationsManagerV10.Commands.dll or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded
At C:\Program Files (x86)\System Center Operations Manager 2016\Powershell\OperationsManager\OperationsManager.psm1:1262 char:14
    + Import-Module <<<<  $psScriptRoot\OM10.Commands\OM10.Commands.psd1
    + CategoryInfo          : NotSpecified: (:) [Import-Module], BadImageFormatException
    + FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.ImportModuleCommand

Add-Type : Could not load file or assembly file:///C:\Program Files (x86)\System Center Operations Manager 2016\Console\Microsoft.Mom.Common.dll or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded
At C:\Program Files (x86)\System Center Operations Manager 2016\Powershell\OperationsManager\OperationsManager.psm1:1311 char:15
    + Add-Type <<<<  -Path $consoleMomCommon
    + CategoryInfo          : NotSpecified: (:) [Add-Type], BadImageFormatException
    + FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.AddTypeCommand

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-12-20 19:08:55

问题解决了,原来我们使用的是旧版本的Windows管理框架。在更新到版本5.1之后,所有的错误都消失了。我安装了此更新: KB3191566

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47904363

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档