With the release of PowerCli 11.2, support for many new VMware products was introduced, including VMware HCX. The PowerCli module name for HCX is “VMware.VimAutomation.HCX” and it currently has 20 cmdlets to manage HCX.
You can use Windows Power Shell to install/upgrade your PowerCLI to v11.2 using the below commands:
1 |
Install-Module -Name VMware.PowerCLI -RequiredVersion 11.2.0.12780525 |
1: Once the necessary module is installed, we can use the Get-Command to examine the cmdlets that are available for HCX.
1 |
Get-Command -Module VMware.VimAutomation.HCX |
2: Authenticate with HCX: To connect to the HCX Manager, we need to use the Connect-HCXServer cmdlet.
1 2 3 4 5 |
PS C:Usersmanish> Connect-HCXServer -Server hcx-ent. |