Is this any faster ?
$pgName = "P_res*"
Get-View -ViewType VirtualMachine -Property Name,Network |
where {Get-View -Id $_.Network | where{$_.Name -match $pgName}} |
select Name
Is this any faster ?
$pgName = "P_res*"
Get-View -ViewType VirtualMachine -Property Name,Network |
where {Get-View -Id $_.Network | where{$_.Name -match $pgName}} |
select Name