I'm not sure if I'm on the correct way or no, so I'm asking for some guidance
I'm trying to get all enabled services in all ESXi / vCenter in order to check if the service is set to "AllIP" or to specific IP
#Connect to vCenter Server
Connect-VIServer = "vCenter1","vCenter2","vCenter3","vCenter4"
$VMHosts= Get-VMHost | Get-VMHostFirewallException | Where-Object {$_.Enabled -and ($_.ExtensionData.AllowedHosts.AllIP)}
$Results= @()
foreach ($VMHost in $VMHosts) {
}