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!
PowerCLI 10 with Linux Support!
ReplyDeletehttps://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!]