Installing PowerCLI 6.5.1

I recently had a requirement to get VMware PowerCLI installed and configured in order to work on developing some scripts. VMware introduced a new way of performing the installation which is well documented on the VMware official blog post however its still took me a little bit of time to work out the actual procedure. After a bit of googling and experimenting I decided to document the steps for future reference.

Platform: Windows Server 2012 R2 & Windows Server 2016

  1. Determine the version of PowerShell currently installed, if your not running PowerShell 5.1 then perform step 2.
1$PSVersionTable.PSVersion
  1. Update PowerShell, in order to install modules using the new PowerShell Library I needed to update the version of PowerShell, this is done by installing a newer WMF. Download and install the WMF 5.1 package.

  2. Set the PowerShell execution policy to 'RemoteSigned'

1Set-ExecutionPolicy RemoteSigned -Confirm:$false -Force
  1. To install the new PowerCLI for all users, open an administrative PowerShell session and use the -Scope command for AllUsers.
1Install-Module -Name VMware.PowerCLI -Scope AllUsers
  1. To import the modules and start using them run the following command:
1Get-Module -Name VMware* -ListAvailable | Import-Module
  1. To remove the 'Customer Experience Improvement Program (CEIP)' message run the following command:
1Set-PowerCLIConfiguration -Scope AllUsers -ParticipateInCEIP $true -Confirm:$false

Posts in this Series