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
Also published on Medium.
Passionate Developer with 7 years of extensive experience working for Data center related products. Contributed and lead the efforts in Solutioning and engineering in Nimesa Technologies for developing Dataprotection and Copy data management product for Private and Public Clouds
This is my personal weblog, opinions expressed here represent my own and not those of my employer.
All content provided on this blog is for informational purposes only and i will not be liable for any errors, losses, or damages from the display or use of this information.