ÿþProcess { if ( $_ -isnot [VMware.VimAutomation.Client20.VMHostImpl] ) { Write-Error "VMHost expected, skipping object in pipeline." continue } $PropertyCol = @( "name", "vmotion" ) $vmh = "" | Select-Object -Property $PropertyCol $vmh.name = $_.Name $vmh.vmotion = $_ | Get-VMHostNetwork | select-object -expandProperty VirtualNic | %{$_.VmotionEnabled} $vmh }