Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 197835

Re: get-vm where statement to find windows with particular network

$
0
0

Try something like this

 

Get-VM|where {$_.guest.osfullname-like"*windows*"-and (Get-NetworkAdapter-VM$_).NetworkName-eq"QA Network"} |
SelectName,Host,PowerState,OSName,
  @{N="Cluster";E={Get-Cluster-VM$_|Select-ExpandPropertyName}},
  @{N="IP";E={[string]::Join(',',($_.Guest.IPAddress))}},
  @{N="ResourcePool";E={Get-ResourcePool-VM$_|Select-ExpandPropertyName}}

Viewing all articles
Browse latest Browse all 197835

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>