Previous Topic: dpmhv-getVersion (Funclet) Command--Show the Web Service VersionNext Topic: dpmhv-getVMProperties (Funclet) Command--Show VM Properties


dpmhv-getVMInfo (Funclet) Command--Show all VMs

The dpmhv-getVMInfo command retrieves the information and settings of a virtual machine.

This command has the following format:

dpmhv-getVMInfo 
-vm vmname|-vmid vmguid 
-host hostname 
[-retval] 
[-silent] 
[-detail]
-vm vmname

Specifies the name of the VM.

-vmid vmguid

Specifies the unique ID of the VM.

-host hostname

Specifies the name of the Hyper-V server host.

-retval

Returns a value for further processing.

-silent

Specifies not to direct the output to the screen.

Return Value

The dpmhv-getVMInfo command returns objects with information of virtual machine.

The following properties are returned in regular mode:

The following properties are returned in detail mode:

Example: Show all VMs

This example displays the information of a virtual machine.

dpmhv-getVMINfo -host hvserver -vm TestVM