A: Windows Server 2012 introduces the ability to track certain metrics for virtual machines (VMs):

  • Average CPU usage, measured in megahertz over a period of time
  • Average physical memory usage, measured in megabytes
  • Minimum memory usage (lowest amount of physical memory)
  • Maximum memory usage (highest amount of physical memory)
  • Maximum amount of disk space allocated to a virtual machine
  • Total incoming network traffic, measured in megabytes, for a virtual network adapter
  • Total outgoing network traffic, measured in megabytes, for a virtual network adapter

To start the gathering of metric data for a VM, you use the Enable-VMResourceMetering Windows PowerShell cmdlet:

Enable-VMResourceMetering -VMName 

To reset the counters, use this command:

Reset-VMResourceMetering 

and to disable them, use

Disable-VMResourceMetering

To view the collected metrics, use this command:

Measure-VM cmdlet

Notice that in my example below, I pass the output object to the formal list (fl) alias to get full information you see below that (by default a table view is used which does not show all data). There is also a Measure-VMResourcePool cmdlet if resource pools are used.


  1. PS C:\> measure-vm -Name savdaldc10 | fl

  2. ComputerName                   : SAVDALHV01
  3. VMId                           : 89173c3f-6d85-434e-80a0-9dd631a21d0e
  4. VMName                         : savdaldc10
  5. MeteringDuration               : 00:01:33.9600000
  6. AverageProcessorUsage          : 171
  7. AverageMemoryUsage             : 2244
  8. MaximumMemoryUsage             : 2244
  9. MinimumMemoryUsage             : 2244
  10. TotalDiskAllocation            : 40960
  11. NetworkMeteredTrafficReport    : {Microsoft.HyperV.PowerShell.VMNetworkAdapterPortAclMeteringReport,
  12.                                 Microsoft.HyperV.PowerShell.VMNetworkAdapterPortAclMeteringReport,
  13.                                 Microsoft.HyperV.PowerShell.VMNetworkAdapterPortAclMeteringReport,
  14.                                 Microsoft.HyperV.PowerShell.VMNetworkAdapterPortAclMeteringReport}
  15. AvgCPU                         : 171
  16. AvgRAM                         : 2244
  17. MinRAM                         : 2244
  18. MaxRAM                         : 2244
  19. TotalDisk                      : 40960