Previous Topic: dpmhyperv DeleteVM Command--Delete a VMNext Topic: dpmhyperv ExportVM Command--Export a VM


dpmhyperv ExpandVirtDisk Command--Expand the Size of a Virtual Disk

The dpmhyperv ExpandVirtDisk command expands the size of a virtual disk image on a Hyper-V host.

This command has the following format:

dpmhyperv ExpandVirtDisk 
[-ws_user username] 
[-ws_password password] 
[-ws_encrypted_password] 
-hypervHost hostname 
-path location 
-size disk_size 
[-async] 
[-pre] 
[-post] 
[-locale iso639value]
-ws_user username

(Optional) Specifies the CA Virtual Assurance user name.

-ws_password password

(Optional) Specifies the CA Virtual Assurance user password.

-ws_encrypted_password

(Optional) Indicates whether the CA Virtual Assurance password is encrypted.

-hypervHost hostname

Specifies the name of the Hyper-V host.

-path location

Defines the location of the virtual disk.

-size drive_size

Specifies the size of the drive in GB.

Note: The size of the disk can be changed later on.

-async

(Optional) Runs the command in the asynchronous mode.

-pre

(Optional) Generates an event before the operation is complete.

-post

(Optional) Generates an event after the operation is complete.

-locale iso639value

(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".

Example: Expand the Size of a Virtual Disk

This example expands the size of the virtual disk image on the Hyper-V host, "hserver" to 2 GB in the asynchronous mode. This command returns the Hyper-V job ID of the created task.

dpmhyperv ExpandVirtDisk -ws_user admin -ws_password #test# -hypervHost hserver -path C:\data\Disks\1.vhd -size 2 -async