SCOM上的PowerShell无法导入模块 [英] PowerShell on SCOM fails to import module

查看:86
本文介绍了SCOM上的PowerShell无法导入模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我无法解决的问题) 我在第一台PC中有SCOM,第二台中有SCOM代理.当我的班级在代理PC中发现时,它必须运行PowerShell脚本.该脚本包含命令:

I have a problem I cannot solve without help ) I have SCOM in first PC, and I have SCOM agent in second. When my class discoveries in agent PC, it must run PowerShell script. This script contains command:

导入模块故障转移群集

但是此命令失败,并出现以下异常:

but this command fails with exception:

加载扩展类型数据文件时发生以下错误: Microsoft.PowerShell,C:\ Windows \ system32 \ WindowsPowerShell \ v1.0 \ Modules \ FailoverClusters \ FailoverClusters.Types.ps1xml:由于"Microsoft.PowerShell"中已存在该文件,因此已跳过该文件.

The following error occurred while loading the extended type data file: Microsoft.PowerShell, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\FailoverClusters\FailoverClusters.Types.ps1xml : File skipped because it was already present from "Microsoft.PowerShell".

我不知道该怎么办.

推荐答案

As this blog post points out, you can ignore extended type data errors when loading modules. It's telling you that the type is already loaded and it can't load it a second time.

这篇关于SCOM上的PowerShell无法导入模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆