VMware PowerCLI Version 6.5.2+ Installation – Online/Offline

From VMware PowerCLI version 6.5.2 and above, the .exe installable package is not available from VMware download site. All the PowerCLI modules are available from https://www.powershellgallery.com/packages/VMware.PowerCLI.

PowerCLI_1

This post is to highlight the online and offline installation procedure for PowerCLI version 6.5.2 and above.

  • Online Install Procedure

The online installation procedure is fairly straight forward. Launch the PowerShell, run the below command line:

Install-Module -Name VMware.PowerCLI

Or, if required specific version, run the below command:

Install-Module -Name VMware.PowerCLI -RequiredVersion 6.5.4.7155375

 

  • Offline Install Procedure

Step 1 From the server with internet connection, launch PowerShell, save the PowerCLI modules to a temporary folder with the below command:

Save-Module -Name VMware.PowerCLI -Path C:\tmp\

Save_Module.JPG

Step 2:  List the available PowerShell module paths on the target server by running the below command:

$Env:PSModulePath

Global Path

Step 3:  Copy the module folders downloaded from Step1 to one of the module path on target server from the output of Step2. It is normally to choose the path “C:\Program Files\WindowsPowerShell\Modules”.

List Folders

Step 4:  Import the PowerCLI modules by running:

Import-Module VMware.PowerCLI

Import_Module

Step 5: Check the PowerCLI module version

Get-Module VMware.PowerCLI | Format-Table –AutoSize

PowerCLI_Version

Leave a Reply

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