Measure-VM Object reference not set to an instance of an object

If you get the following error while Measure-VM in Hyper-V Resource Metering:

Measure-VM : Object reference not set to an instance of an object.
+ CategoryInfo : NotSpecified: (:) [Measure-VM], NullReferenceException
+ FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands.MeasureVMCommand

Check if there are hard disks for the VM that have no paths in the config. In my case there was a couple of disks like this that caused the issue.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s