首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Powershell Add VMWare.VimAutomation.Core问题

Powershell Add VMWare.VimAutomation.Core问题
EN

Stack Overflow用户
提问于 2016-09-05 19:29:30
回答 1查看 6K关注 0票数 1

我刚刚从Powershell 4和PowerCLI 4.*更新到Powershell 5和PowerCLI 6.*。更新后,添加/使用管理单元VMWare.VimAutomation.Core不起作用:

代码语言:javascript
复制
PS C:\Users\Me> Add-PSSnapin VMWare.VimAutomation.Core
Add-PSSnapin : Unexpected error: A connection core service provider is already registered. Cannot register new one.

试图移除时:

代码语言:javascript
复制
PS C:\Users\Me> Remove-PSSnapin VMWare.VimAutomation.Core
Remove-PSSnapin : No Windows PowerShell snap-ins matching the pattern 'VMWare.VimAutomation.Core' were found. 
Check the pattern and then try the command again.

Get-PSSnapin -Registered,我得到:

代码语言:javascript
复制
Name        : VMware.VimAutomation.Core
PSVersion   : 4.0
Description : This Windows PowerShell snap-in contains Windows PowerShell cmdlets for managing vSphere.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-09-05 21:18:35

我卸载并重新安装了PowerCLI 6.3,所有这些都是固定的。Get-PSSnapin -Registered现在返回以下内容:

代码语言:javascript
复制
Name        : VMware.VimAutomation.Core
PSVersion   : 5.0
Description : This Windows PowerShell snap-in contains Windows PowerShell cmdlets for managing vSphere.

还要注意: VMware.VimAutomation.Core既是PowerCLI版本中的一个模块,也是一个管理单元。

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

https://stackoverflow.com/questions/39336621

复制
相关文章

相似问题

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