Shrink VHD VHDX
From KlavoWiki
Windows Powershell
Optimize-VHD -Path 'C:\ClusterStorage\HyperV Data\Virtual Hard Disks\myserver.vhdx' -Mode Full
Get-VHD -Path 'C:\ClusterStorage\HyperV Data\Virtual Hard Disks\myserver.vhdx'
Windows Powershell
Optimize-VHD -Path 'C:\ClusterStorage\HyperV Data\Virtual Hard Disks\myserver.vhdx' -Mode Full
Get-VHD -Path 'C:\ClusterStorage\HyperV Data\Virtual Hard Disks\myserver.vhdx'