When you are connected to the vCenter, through the Connect-VIServer cmdlet, this
Get-VMHost
should return all the ESX servers that are managed by the vCenter.
When you are connected to the vCenter, through the Connect-VIServer cmdlet, this
Get-VMHost
should return all the ESX servers that are managed by the vCenter.