博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
The Modules for PowerCLI 6.5
阅读量:6857 次
发布时间:2019-06-26

本文共 1203 字,大约阅读时间需要 4 分钟。

You have to look at the Modules in PowerCLI 6.5.

When you wrote your Scripts with the PowerShell ISE you had to load the PSSnapins before.

Check which Module loaded via

Get-Module -Name VMware*

In 6.5 there are no longer PSSnapins! Now there are only Modules!

Before PowerCLI 6.5 you added your Snapins via

Add-PSSnapin VMware.VimAutomation.Core

In 6.5 you have to load the Modules one bye one via

Import-Module VMware.VimAutomation.CoreImport-Module VMware.VimAutomation.VdsImport-Module VMware.VimAutomation.CloudImport-Module VMware.VimAutomation.PCloudImport-Module VMware.VimAutomation.Cis.CoreImport-Module VMware.VimAutomation.StorageImport-Module VMware.VimAutomation.HorizonViewImport-Module VMware.VimAutomation.HAImport-Module VMware.VimAutomation.vROpsImport-Module VMware.VumAutomationImport-Module VMware.DeployAutomationImport-Module VMware.ImageBuilderImport-Module VMware.VimAutomation.License

Or you can load all Modules via

Get-Module -ListAvailable VMware | Import-Module

Otherwise you start the VMware Script witch is located under (default)

“C:\Program Files (x86)\VMware\Infrastructure\PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1”

转载于:https://blog.51cto.com/549687/2140240

你可能感兴趣的文章
layer.js子窗口关闭并传数据到父窗的方法
查看>>
koa2入门(2) koa-router 路由处理
查看>>
记一次中台数据传输同步Elasticsearch失败的车祸现场
查看>>
找暑期实习总结
查看>>
转载:技术人员的管理思维观
查看>>
如何使用Dilworth定理
查看>>
7.11 求总和的百分比
查看>>
Python入门
查看>>
《CLR via C#》读书笔记 之 类型基础
查看>>
WPF中RadioButton的分组
查看>>
JavaScript new对象的四个过程
查看>>
Docker的Mysql数据库:把数据存储在本地目录
查看>>
javascript 判断是否是PC还是手机端
查看>>
存储过程起步
查看>>
【转】Linux常用命令
查看>>
动量法应用NASA测试不同飞机机翼噪音
查看>>
广搜,深搜,单源最短路径,POJ(1130),ZOJ(1085)
查看>>
简单深搜
查看>>
HDU 3625 第一类斯特林数
查看>>
HDU 5726 GCD
查看>>