Compacting a dynamic VHD January 17, 2013 DevStart Diskpart from the command prompt.select vdisk file="<path>" compact vdisk