You mean something like this ?
foreach($esx in Get-VMHost){ Get-VirtualPortGroup -VMHost $esx | where {$_.Name -like "InsideNetwork_*"} | Select @{N="Host";E={$esx.Name}, @{N="Portgroup";E={$_.Name}} }
You mean something like this ?
foreach($esx in Get-VMHost){ Get-VirtualPortGroup -VMHost $esx | where {$_.Name -like "InsideNetwork_*"} | Select @{N="Host";E={$esx.Name}, @{N="Portgroup";E={$_.Name}} }