expand vdiskexpand vdisk

适用于: Windows Server (半年通道) ,Windows Server 2019,Windows Server 2016,Windows Server 2012 R2,Windows Server 2012Applies to: Windows Server (Semi-Annual Channel), Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

将虚拟硬盘 (VHD) 展开为指定大小。Expands a virtual hard disk (VHD) to a specified size.

必须选择并分离 VHD,此操作才能成功。A VHD must be selected and detached for this operation to succeed. 使用 " 选择 vdisk" 命令 选择卷并将焦点移动到该卷。Use the select vdisk command to select a volume and shift the focus to it.

语法Syntax

expand vdisk maximum=<n>

参数Parameters

参数Parameter 说明Description
最大值 =<n>maximum=<n> 以 mb 为单位指定 VHD 的新大小 (MB) 。Specifies the new size for the VHD in megabytes (MB).

示例Examples

若要将所选 VHD 扩展到 20 GB,请键入:To expand the selected VHD to 20 GB, type:

expand vdisk maximum=20000

其他参考Additional References