Install VMware PowerCLI from Windows Powershell

Vignesh A Sathiyanantham
1 min readApr 9, 2019

--

Copy and Paste the following command to install this package using PowerShellGet

Install-Module -Name VMware.PowerCLI

If you are getting any error related to the privilege

PS C:\Users\asvig> Install-Module -Name VMware.PowerCLI
Install-Module : Administrator rights are required to install modules in ‘C:\Program Files\WindowsPowerShell\Modules’. Log on to the
computer with an account that has Administrator rights, and then try again, or install

Run with adding -Scope CurrentUser

Install-Module -Name VMware.PowerCLI -Scope CurrentUser

In addition to that you may need to set Execution policy to RemoteSigned

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

by running the above command in Administrator mode, and also import Import-Module VMware.VimAutomation.Core before start using powercli commands

Originally published at asvignesh.

--

--

Vignesh A Sathiyanantham
Vignesh A Sathiyanantham

Written by Vignesh A Sathiyanantham

Decade of experience in building product related to private datacenter and public cloud #Java #AWS #VMware #Python

No responses yet