Hyperv - Metering

Enable metering for all VMs on host node:

Get-VM * | Enable-VMResourceMetering

Enable metering for single VM guest on host:

Get-VM -Name vmname | Enable-VMResourceMetering

Show specific metering resources for all VMs:

Get-VM * | Measure-VM | Select-Object VMname, AvgCPU, AvgRAM, AggregatedAverageNormalizedIOPS

Show metering resources for all VMs:

Get-VM * | Measure-VM | Select-Object *

Reset metering counters for all VMs:

Get-VM * | Reset-VMResourceMetering

Disable metering for all VMs:

Get-VM * | Disable-VMResourceMetering