Be sure to detach it first.
then use diskpart to compact it.
https://linhost.info/2011/01/windows-how-to-compact-a-dynamic-vhd/
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
So early in the say while using my laptop I noticed I was running out of space and needed more,the biggest space hugger was my vhd so obviously I tried to do something about it sadly I saw compressing and thought is would work(it didn't) so I was like that's fine I'll just de compress it since I couldn't enter the file but every time I tried it kept freezing when I said OK/apply(not everything just the advance attributes tab) my vhd is 318gigs big whilst my HD is only 2gigs Pls help I'm Actually getting so annoyed
Be sure to detach it first.
then use diskpart to compact it.
https://linhost.info/2011/01/windows-how-to-compact-a-dynamic-vhd/
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
Something here could help.
https://www.sikich.com/insight/how-to-compact-dynamic-vhd-and-vhdx-files-in-hyper-v-2012-and-newer/
--please don't forget to upvote
and Accept as answer
if the reply is helpful--