Get-VHDInfo

Jun 22, 2010 at 10:59 PM
I am trying to use powershell to return the amount of space used within a vhd. I have been successfull in using Get-VHDInfo to return the MaxInternalSize and the actual filesize of the vhd. The end result is that I would like to be able to script with powershell to return the filesize of the vhd and compare to the actual space used to determin if I need to compact a vhd or not. Is this possible? Thanks for any help