Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Get-HVMachineSummary more than one 'state' value

$
0
0

I need something simple.

I have the command Get-HVMachineSummary. I need the "-state" parameter to get more than one value. ie: I need to see the vms that are in AVAILABLE or PROVISIONED state and count them.

I tried something with the command below

 

(Get-HVMachineSummary -PoolName $pool -state (PROVISIONED or AVAILABLE)).count

Viewing all articles
Browse latest Browse all 175326

Trending Articles



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