I have tried to shrink a VHDX dynamic disk using diskpart using the below commands.
Text
select vdisk File=”I:\path\to\your.vhd” attach vdisk readonly compact vdisk
It got stuck at 30% so I hit ctrl+C to cancel, but the job is still active.
I run the command
Text
detail vdisk
I cannot figure out how to cancel the actual compacting job that is running in diskpart.
I can still view all the files on the attached VHDX drive.
Does anyone know?
Server is running Server 2012 R2
Regards Jake Gardner If you found this post helpful, please give it a helpful vote. If it answered your question, remember to mark it as an Answer.