Reduce VHDX file size
Reducing the size of a VHDX (does not change the size of the virtual drive, just compresses the virtual disk file to only use the space it needs on the host computer):
In an admin powershell prompt: Optimize-VHD ‘P:\FullPath\VirtualDisk.vhdx’ -Mode Full