PowerCLI 6.5 watchout the Modules

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

Add-PSSnapin VMware.VimAutomation.Core

In 6.5 you have to load the Modules via

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

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.