April 26, 2017

VMWare PowerCLI 6.5 now easily installed via PowerShellGet

PowerCLI


EDIT 2023: please see https://williamlam.com/2022/11/how-to-install-powercli-13-0-and-use-new-image-builder-auto-deploy-cmdlets-on-apple-silicon.html and https://www.virten.net/2022/12/how-to-install-powercli-13-with-python-3-7-on-windows-required-for-imagebuilder/ for extra help regarding python 3.7 dependency.

~~~~ OP ~~~~:

VMWare PowerCLI 6.5.x++ now easily installed via PowerShellGet! https://www.powershellgallery.com/packages/VMware.PowerCLI/

PS> Install-Module -Name VMware.PowerCLI -Confirm:$false -Scope AllUsers -AllowClobber -Force

That’s it! …However, You may also need to update occasionally:

PS> Find-Module "VMWare.*" | Update-Module -Verbose

Your scripts may begin with Import-Module VMware.VimAutomation.Core



See the vmware blog for more info, including installing under an administrator account for an “AllUsers” install (Very helpful for multi-user workstations): https://blogs.vmware.com/PowerCLI/2017/04/powercli-install-process-powershell-gallery.html i.e. [...] -Scope AllUsers

Separately, you may update all your powershell help files with Update-Help



If you wish to purge PowerCLI, do so with the following from a standard Powershell (not PowerCLI):

PS> (Get-Module VMware.PowerCLI -ListAvailable).RequiredModules | Uninstall-Module -Force
PS> Get-Module VMware.PowerCLI -ListAvailable | Uninstall-Module -Force


~~~
As Always, Good Luck!
  

1 comment:

  1. PowerCLI 10 with Linux Support!
    https://blogs.vmware.com/PowerCLI/2018/02/powercli-10.html
    (hint: Install for CurrentUser only; otherwise have to sudo pwsh to install for all users which will have you sudoing for all updates)

    Install PowerShell in Linux
    https://github.com/PowerShell/PowerShell
    hint: purge libssl1.0.0
    [Note: Without Active-Directory Support!]

    ReplyDelete

Comments, Suggestions or "Thank you's" Invited! If you have used this info in any way, please comment below and link/link-back to your project (if applicable). Please Share.
I accept Bitcoin tips of ANY amount to: 1GS3XWJCTWU7fnM4vfzerrVAxmnMFnhysL
I accept Litecoin tips of ANY amount to: LTBvVxRdv2Lz9T41UzqNrAVVNw4wz3kKYk