Hyper-V Script: Compact VHD

1–2 minutes

Originally from

Found, then improved from

Found, then improved

Repost

the wolf squeezing the empty space out of a virtual disk like a sponge, an amber drop, the raven watching

http://blogs.msdn.com/b/virtual_pc_guy/archive/2008/06/11/hyper-v-script-compact-vhd.aspx