Getting Started with VMware HCX cmdlets

Provides cmdlets for managing VMware HCX features.

Step 1: Connect to Environment 

To setup a connection you should use the Connect-HCXServer command. Run the code sample below to connect.
Connect-HCXServer -Server $serverAddress -User $user -Password $pass
You can also connect to remote environment by running one of the alternative options to connect below:

Option 1:
$credential = Get-Credential
Connect-HCXServer -Server $serverAddress -Credential $credential
Option 2:
Connect-HCXServer -Server $serverAddress -Credential -User $user -Password $pass -SaveCredential

Step 2: Try a GET Command 

For example when successfully connected you can run the Get-HCXAppliance command.
PS C:\> Get-HCXAppliance

Was this page helpful?