For my work I use PowerCLI a lot, but I don’t like the shell that is available when installing PowerCLI. I just want to start PowerShell (mostly through PowerShell ISE) and load with one command the PowerCLI modules and/or snapins and not be limited.

Before PowerCLI 6.5, PowerCLI was a mix of powershell snappins and modules. To support older PowerCLI versions, the script will check if there are vmware powershell snappins registered. And will load them.
Powershell modules will have precedence over the snappins.

To use it is simple.
Start Powershell by opening a powershell shell, or to start the PowerShell ISE
In the shell windows type:


The script will return which PowerCLI modules and/or snappins are loaded, like

Loading VMware PowerCLi …

Name Version type
—- ——- —-
VMware.DeployAutomation module
VMware.ImageBuilder module
VMware.VimAutomation.Cis.Core module
VMware.VimAutomation.Cloud module
VMware.VimAutomation.Common module
VMware.VimAutomation.Core module
VMware.VimAutomation.HA module
VMware.VimAutomation.HorizonView module
VMware.VimAutomation.License module
VMware.VimAutomation.PCloud module
VMware.VimAutomation.Sdk module
VMware.VimAutomation.Storage module
VMware.VimAutomation.Vds module
VMware.VimAutomation.vROps module
VMware.VumAutomation module

During execution of the script it will skip modules/snappins that are already loaded.

You can download the import-PowerCLI script from github at 

One thought on “import-PowerCLI”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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

%d bloggers like this: