Hyper-V 2012 R2 MP: Free Disk Space calculation issue
Calculation of free disk space and used space in Virtual Hard Disk free disk space monitor in Microsoft Windows Hyper-V 2012 R2 Monitoring MP is not correct. Used space is being calculated as zero. The GetDiskPartitionSpaceV2.ps1 script is using $UsedSpace = $drive.UsedSpace/$MEGABYTE which does not return anything.
This way it works fine.
$FreeSpace = $drive.FreeSpace/$MEGABYTE;
$UsedSpace = $TotalSpace-$FreeSpace;
MP Version: 7.1.10107.0