Previous Topic: dpmhyperv ExportVM Command--Export a VMNext Topic: dpmhyperv GetHostSwitches Command--Get Switches of a Host


dpmhyperv ExportVMEx Command--Export a VM

The dpmhyperv ExportVM command lets you export a virtual machine.

This command has the following format:

dpmhyperv ExportVM 
[-ws_user username] 
[-ws_password password] 
[-ws_encrypted_password] 
-hypervHost hostname 
-vm vm_name|-vmguid vm_ID 
-dest dest_folder 
[-noruntimeInfo] 
[-nosnapshots] 
[-nostorage] 
[-nosubdir]
[-snapshot snapshot_name]|[-snapshotid snapshot_ID] 
[-nostate] 
[-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.

-vmguid vm_ID

Specifies the unique GUID of the VM.

-dest dest_location

(Optional) Defines the destination location of the imported file.

-noruntimeInfo

(Optional) Specifies not to export the run time-related information.

-nosnapshots

(Optional) Specifies not to export snapshots.

-nostorage

(Optional) Specifies not to export virtual disk image files.

-nosubdir

(Optional) Specifies not to create a sub directory with the VM display name in the directory specified as the export path.

-snapshot snapshot_name

(Optional) Specifies the name of the snapshot that you want to export.

-snapshot snapshot_ID

(Optional) Specifies the GUID of the snapshot that you want to export.

-nostate

(Optional) Specifies that only the VM specification is exported. This option prevents the exported VM from trying to refer to the original VM disk images.

-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: Export a VM

This example exports the VM, "TestVM" without snapshots and creates the exported VM, "textvmExp."

dpmhyperv ExportVMEx -ws_user admin -ws_password #test# -hypervHost hserver -vm TestVM -dest c:\Ex\TestVMExp -nosubdir -nosnapshots