Applies To: Windows 7, Windows Server 2008 R2, Windows Server 2012 R2, Windows Server 2012, Windows 8
Merges a differencing virtual hard disk (VHD) with its corresponding parent VHD. The parent VHD will be modified to include the modifications from the differencing VHD.
This command is only applicable to Windows 7 and Windows Server 2008 R2.
merge vdisk depth=<n>
Indicates the number of parent VHD files to merge together. For example, depth=1 indicates that the differencing VHD will be merged with one level of the differencing chain.
A VHD must be selected and detached for this operation to succeed. Use the select vdisk command to select a VHD and shift the focus to it.
This parameter modifies the parent VHD. As a result, other differencing VHDs that are dependent on the parent will no longer be valid.
To merge a differencing VHD with its parent VHD, type:
merge vdisk depth=1