Wednesday, April 26, 2017

VMWare PowerCLI 6.5 now easily installed via PowerShellGet


VMWare PowerCLI 6.5.x now easily installed via PowerShellGet!

PS> Find-Module "VMWare.*" | Install-Module -AllowClobber -Verbose

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): 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!
Please comment or tip me or use any/all of my affiliate links; Thank YOU! 

1 comment:

  1. PowerCLI 10 with Linux Support!
    (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
    hint: purge libssl1.0.0
    [Note: Without Active-Directory Support!]


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