merge vdisk

適用於:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012

將差異虛擬硬碟 (VHD) 與對應的父系 VHD 合併。 將會修改父系 VHD 以包含差異 VHD 的修改。 此命令會修改父系 VHD。 因此,相依於父系的其他差異 VHD 將不再有效。

重要

您必須選擇並卸離 VHD,此作業才能成功。 使用 select vdisk 命令來選取 VHD,並將焦點移至該 VHD。

語法

merge vdisk depth=<n>

參數

參數 描述
depth=<n> 指出要合併在一起的父系 VHD 檔案數量。 例如,depth=1 表示差異 VHD 將會與差異鏈結的一個層級合併。

範例

若要合併差異 VHD 與其父系 VHD,請輸入:

merge vdisk depth=1