
PowerCLI 6.5 watchout the Modules
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.
In 6.5 there are no longer PSSnapins! Now there are only Modules!
Before PowerCLI 6.5 you added your Snapins via
1 |
Add-PSSnapin VMware.VimAutomation.Core |
In 6.5 you have to load the Modules via
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Import-Module VMware.VimAutomation.Core Import-Module VMware.VimAutomation.Vds Import-Module VMware.VimAutomation.Cloud Import-Module VMware.VimAutomation.PCloud Import-Module VMware.VimAutomation.Cis.Core Import-Module VMware.VimAutomation.Storage Import-Module VMware.VimAutomation.HorizonView Import-Module VMware.VimAutomation.HA Import-Module VMware.VimAutomation.vROps Import-Module VMware.VumAutomation Import-Module VMware.DeployAutomation Import-Module VMware.ImageBuilder Import-Module VMware.VimAutomation.License |
Otherwise you start the VMware Script witch is located under (default)
“C:\Program Files (x86)\VMware\Infrastructure\PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1”
Also checkout the new functions that came with 6.5 here:
http://blogs.vmware.com/PowerCLI/2016/11/new-release-powercli-6-5-r1.html