The command we want to be able to invoke is: Optimize-VHD -Path C:\path\to\my.vhd -Mode Full Note that this only works on machines that have the Hyper-V tool set installed.
The command we want to be able to invoke is:
Note that this only works on machines that have the Hyper-V tool set installed.