Watch the video:
Timestamps:
0:00 - Intro/Explanation
0:10 - Hyper-V VM Storage Issues
0:30 - Removing unused files & programs
1:35 - Clear temp & Disk Cleanup
2:15 - Removing unused checkpoints
5:20 - Why Defrag a VHD/VHDX?
6:50 - Mount VHDX
7:50 - Assign a drive letter
8:07 - Defrag on a VHD
9:13 - Unmount VHDX
9:30 - Compact VHDX
Trying to save space on your system? Lots of VHDX and AVHDX files taking up tons of space? This quick guide shows you how to prune files, compact and save drive space.
Can’t delete checkpoints? See this video: Go to post or View on YouTube
TreeSize: https://www.jam-software.com/treesize_free
Commands:
defrag e: /x
defrag e: /k /l
defrag e: /x
defrag e: /k
optimize-vhd “D:\FILENAME.vhdx” -Mode Full