Share via


Merge vdisk

Applies To: Windows 7, Windows Server 2008 R2

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.

Note

This command is only applicable to Windows 7 and Windows Server 2008 R2.

Syntax

merge vdisk depth=<n>

Parameters

Parameter Description

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.

Remarks

  • 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.

Examples

To merge a differencing VHD with its parent VHD, type:

merge vdisk depth=1

Additional references