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

your right, there a number of powered off vms. there is at least one windows server that fit the criteria. i confirmed by looking up the resulting mac addresses. the network label on the vm has "org management network". its nic 2 on the VM, not sure if that matters

 

this is what i used.

 

i get results with this

get-vm | get-networkadapter | where {$_.networkname -like "*org*"}  (using a different network name)

 

not with this.

get-vm | where {$_.guest.osfullname -like "*windows*" -and (get-networkadapter -vm $_.networkname -like "*org*"}

 

thanks in advance


Viewing all articles
Browse latest Browse all 197835

Trending Articles



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