title | description | ms.topic | ms.assetid | ms.author | author | manager | ms.date |
---|---|---|---|---|---|---|---|
expand vdisk |
Reference article for the expand vdisk command, which expands a virtual hard disk (VHD) to a specified size. |
reference |
3ae547b4-3813-4b86-bacd-bc273c028a2a |
jgerend |
JasonGerend |
mtillman |
10/16/2017 |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Expands a virtual hard disk (VHD) to a specified size.
A VHD must be selected and detached for this operation to succeed. Use the select vdisk command to select a volume and shift the focus to it.
expand vdisk maximum=<n>
Parameter | Description |
---|---|
maximum=<n> |
Specifies the new size for the VHD in megabytes (MB). |
To expand the selected VHD to 20 GB, type:
expand vdisk maximum=20000