Yes, that should be correct.
https://www.sikich.com/insight/how-to-compact-dynamic-vhd-and-vhdx-files-in-hyper-v-2012-and-newer/
--please don't forget to 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.
Server 2012R2 running Hyper-V
Hyper-V server 2012R2 (SQLserver2012)
OK, I followed the process to shrink the VHDX to free up space.
Here is VM disk Partition:
This is the Get-VHD that shows the before & after of the shrink command and the file explore winnow Did it shrink physically or not?
Yes, that should be correct.
https://www.sikich.com/insight/how-to-compact-dynamic-vhd-and-vhdx-files-in-hyper-v-2012-and-newer/
--please don't forget to Accept as answer if the reply is helpful--
A couple of things;
https://learn.microsoft.com/en-us/powershell/module/hyper-v/resize-vhd?view=windowsserver2019-ps
--please don't forget to Accept as answer if the reply is helpful--
Hi,
For your reference:
https://learn.microsoft.com/en-us/windows-server/storage/disk-management/shrink-a-basic-volume
-----------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Any progress or updates?
--please don't forget to Accept as answer
if the reply is helpful--
OK,
Please look at the attachments
Why did the Get-VHD file size not shrink as well. The file explorer still shows the file as 300+ GB. I need to recover space on the drive ASAP.