Quantcast
Viewing all articles
Browse latest Browse all 182126

get-vm where statement to find windows with particular network

Hi, i've been trying to figure this out. any help would be appreciated. i'm trying to query vcenter to only output windows vms with a particular network assigned. for instance, find all windows vms with "QA Network"

 

To get windows vms i got

 

get-vm | where {$_.guest.osfullname -like "*windows*"}

 

but cant figure out how to add the network part. I need the output to contain VMName,VMHost,PowerState,OS,Cluster,IPAdress,Pool (resource pool)

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 182126

Trending Articles



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