sasha2002 Blog's

Just another blog from admin's

Compact VHD and VHDX from Hyper-V Windows Server 2012 —

select vdisk File=”C:\Users\Public\Documents\Hyper-V\Virtual hard disks\CRM.vhd”
attach vdisk readonly
compact vdisk
detach vdisk

PowerShell

Mount-VHD –Path “C:\Users\Public\Documents\Hyper-V\Virtual hard disks\CRM.vhdx” -ReadOnly

Optimize-VHD -Path “C:\Users\Public\Documents\Hyper-V\Virtual hard disks\CRM.vhdx” -Mode Full


Categorised as: Linux

Comments are disabled on this post


Comments are closed.