measure-vm : Sequence contains no elements


  • We are running Hyper-V 2016 and started noticing that when running the command Measure-VM on our VMs we start getting an error:

    measure-vm : Sequence contains no elements
    At line:1 char:1
    + measure-vm VMNAME
    + ~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Measure-VM], VirtualizationException
        + FullyQualifiedErrorId : InvalidOperation,Microsoft.HyperV.PowerShell.Commands.MeasureVM

    We tried running this on all of our VMs:

    Disable-VMResourceMetering VMNAME

    Enable-VMResourceMetering VMNAME

    But the feeling is that when we moved the VMs to a new host or something else happened the errors returned.

    Any ideas what the issue is?


    30 พฤศจิกายน 2560 13:50