How to install VMware PowerCLI on a Windows Server

The Opslogix support team might request that you execute specific PowerShell commands for VMware as part of a troubleshooting process. If you currently do not have PowerCLI installed on your system, please refer to the following steps.

Procedure for Installing the VMware PowerCLI Module on a PC with an Internet Connection:

  1. On a computer with internet connectivity, launch PowerShell, preferably with administrative privileges.
  2. Enter the command: Find-Module -Name VMware.PowerCLI


  3. Install the module with the command: Install-Module -Name VMware.PowerCLI -Scope CurrentUser. Select "A"  to install the module.




  4. To verify the installation, use the command: Get-Command -Module VMWare

Note: The '-Scope CurrentUser' parameter allows PowerShell to install the module without necessitating administrative access.

Set-PowerCLIConfiguration Options

In order not to be prompted to join the VMware’s Customer Experience Improvement Program (“CEIP”) and not to get certificate warning, you can run the commands below:

 
1. Enter the command: Set-PowerCLIConfiguration -Scope AllUsers -ParticipateInCeip $false -InvalidCertificateAction Ignore
 
2. Connect a vCenter Server using credentials popup
Connect-VIServer <vCenter FQDN>
 
3. Get a list of Virtual Machines
Get-VM