Previous Topic: dpmhyperv ImportVM Command--Import a VMNext Topic: dpmhyperv SetClustered Command--Add or Remove a VM from a Cluster


dpmhyperv ImportVMEx Command--Copy and Import a VM

The dpmhyperv ImportVMEx command copies and imports an already exported VM to a Hyper-V host.

This command has the following format:

dpmhyperv ImportVMEx 
[-ws_user username] 
[-ws_password password] 
[-ws_encrypted_password] -hypervHost hostname 
-path location [dest dest_location]
[-name vm_name] 
[-noNewID] 
[-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 server.

-dest dest_location

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

-vm vm_name

Specifies the VM name.

-noNewID

(Optional) Indicates not to generate a new VM GUID. In this case, the imported VM and the imported from VM have the same GUID. We recommend not to use this option to avoid potential conflicts with other VMs.

-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: Copy and Import a VM to a Hyper-V host

This example imports an exported VM to a Hyper-V host and does not generate a new ID for it.

dpmhyperv ImportVMEx -ws_user admin -ws_password #test# -hypervHost hserver -path C:\data\Export\test -name test-vm01-imported -noNewID