I tied the following, but keep getting errors:
1.)
Get-Cluster | ? {$_.Name -NotLike "*Build"} | Get-VMHost | Get-View
2.)
$FilteredESXiHostList = Get-Cluster | ? {$_.Name -NotLike "*Build"} | Get-VMHost
Get-VMHost $FilteredESXiHostList | Get-View
I tied the following, but keep getting errors:
1.)
Get-Cluster | ? {$_.Name -NotLike "*Build"} | Get-VMHost | Get-View
2.)
$FilteredESXiHostList = Get-Cluster | ? {$_.Name -NotLike "*Build"} | Get-VMHost
Get-VMHost $FilteredESXiHostList | Get-View