- Local time
- 12:28 AM
- Posts
- 7,454
- OS
- Windows 11 Pro + Win11 Canary VM.
As anybody who knows about dynamically vhdx files will be aware is if you delete stuff or do disk cleanup e.g. to remove Windows.old, although the spaced is logically freed, it is not physically removed as far as host OS is concerned.
The upshot is the vhdx files just keep growing until they meet the maximum size and then behave more like a fixed size vhdx file.
There is a clean option you can use to attempt to reclaim this space but it does not work that well, hardly saving anything.
I experimented with a variety of methods and decided cloning vhdx file to another new vhdx file would be easier using Macrium Reflect.
I tried this and found it could be temperamental in reclaiming space i.e. it only fully reclaims space if new vhdx is rather smaller then original. I attribute that to the fact when you clone a system using Reflect to the same size drive, it does not "defrag" the clone i.e. some of that unclaimed space also gets copied.
So I tried an experiment by creating same size vhdx file, but deliberately reducing size of drive partition as shown below (drag and drop efi, msr, C drive, right click on C drive and reduce it in size, then drag and drop recover partition)
I then cloned it and the original vhdx file which had grown to around 69 GB was reduced to just over 45 GB.
It was then a simple matter using minitool to move recovery partition to end, and then expand C drive to fill all unallocated space.
I tried this method on several vhdx's and it worked 100% reliably in all cases.

The upshot is the vhdx files just keep growing until they meet the maximum size and then behave more like a fixed size vhdx file.
There is a clean option you can use to attempt to reclaim this space but it does not work that well, hardly saving anything.
I experimented with a variety of methods and decided cloning vhdx file to another new vhdx file would be easier using Macrium Reflect.
I tried this and found it could be temperamental in reclaiming space i.e. it only fully reclaims space if new vhdx is rather smaller then original. I attribute that to the fact when you clone a system using Reflect to the same size drive, it does not "defrag" the clone i.e. some of that unclaimed space also gets copied.
So I tried an experiment by creating same size vhdx file, but deliberately reducing size of drive partition as shown below (drag and drop efi, msr, C drive, right click on C drive and reduce it in size, then drag and drop recover partition)
I then cloned it and the original vhdx file which had grown to around 69 GB was reduced to just over 45 GB.
It was then a simple matter using minitool to move recovery partition to end, and then expand C drive to fill all unallocated space.
I tried this method on several vhdx's and it worked 100% reliably in all cases.

My Computer
System One
-
- OS
- Windows 11 Pro + Win11 Canary VM.
- Computer type
- Laptop
- Manufacturer/Model
- ASUS Zenbook 14
- CPU
- I9 13th gen i9-13900H 2.60 GHZ
- Motherboard
- Yep, Laptop has one.
- Memory
- 16 GB soldered
- Graphics Card(s)
- Integrated Intel Iris XE
- Sound Card
- Realtek built in
- Monitor(s) Displays
- laptop OLED screen
- Screen Resolution
- 2880x1800 touchscreen
- Hard Drives
- 1 TB NVME SSD (only weakness is only one slot)
- PSU
- Internal + 65W thunderbolt USB4 charger
- Case
- Yep, got one
- Cooling
- Stella Artois (UK pint cans - 568 ml) - extra cost.
- Keyboard
- Built in UK keybd
- Mouse
- Bluetooth , wireless dongled, wired
- Internet Speed
- 900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
- Browser
- Edge
- Antivirus
- Defender
- Other Info
- TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)
Macrium Reflect Home V8
Office 365 Family (6 users each 1TB onedrive space)
Hyper-V (a vm runs almost as fast as my older laptop)