
Nothing happens when Compacting VHD in Hyper-V
For the past couple days now, I have been trying to compact a couple virtual machine hard drives VHDX via Hyper-V Manager. One of them worked without a hitch, however the other one I would go to Hyper-V manager, click edit disk and follow the normal procedures, but when I clicked finish, the box would just go away without it ever actually changing the size. I found a fix around this using a one line PowerShell command!
You can actually compact VHDX from Powershell just the same as you can in the GUI. Below is the command that you must run (keep in mind the virtual machine has to be off in order for this to work).
Optimize-Vhd -path <full path the vhd file> -Mode FullThis process takes some time, but it is worth saving that precious disk space! I just saved 100GB of hard drive space! Let me know in the comments if this helped you!
Originally posted at https://moreabout.tech/nothing-happens-when-compacting-vhd-in-hyper-v/
Leave Nothing happens when Compacting VHD in Hyper-V to:
Read more #technology posts
Best Posts From moreabout.tech
We have not curated any of moreabout.tech's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From moreabout.tech
- HIDDEN SAMSUNG GALAXY FEATURE THAT YOU DIDN'T KNOW ABOUT | SAMSUNG GALAXY DEX
- 10 BEST GALAXY WATCH APPS AND GAMES | SAMSUNG GALAXY WATCH GAMES AND USEFUL APPS
- Samsung Galaxy Watch 2019 Review | Pros AND Cons
- How to Post To Instagram Using a Computer
- Samsung Galaxy Watch (46mm) vs Fossil Gen 4 Explorist: Which one I stuck with
- Error 1918 while Installing MySQL ODBC Driver on Windows
- Error When Setting Up Database Mirroring
- Creating Cron Jobs in Windows 10 and Windows Server 2016
- How to start your own blog
- Creating Rooms in Office 365 Exchange Online and Add To Rooms List