1 Reply Latest reply on Nov 28, 2012 6:23 AM by LucD

    Historical hard disk stats

    luvizstuf Lurker

      I am trying to retrieve hard disk size or total hard disk storage (for a vm with more than 1 hard disk).

      My aim is to determine if the total hard-disk storage for a vm has increased/decreased.


      The CapacityKB return from Get-HardDisk command is what I'm looking for but I need to

      get this information over a period of time.


      The following code gets me a return for current figures:

      $disksize = (($vm | get-harddisk | measure-object -property CapacityKB -sum  | Select @{N="sum";E={$_.SUM}}))


      Are there any metrics that I can use or is there any way for me to calculate this based on existing metrics?