Previous Topic: dpmhv-getJobStatus (Funclet) Command--Show Job StatusNext Topic: dpmhv-getVersion (Funclet) Command--Show the Web Service Version


dpmhv-getPhysDisks (Funclet) Command--Show all Physical Disks

The dpmhv-getPhysDisks command lists the physical disks to attach to virtual machines on a Hyper-V server. The physical disks should be displayed in offline status in Windows Disk Manager.

This command has the following format:

dpmhv-getPhysDisks 
-host hostname 
[-silent] 
[-retval] 
[-detail]
-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.

-detail

(Optional) Displays the details of the physical disks attached to a virtual machine.

Return Value

The dpmhv-getPhysDisks command returns an array of objects representing the SCSI controllers of the specified virtual machine.

The properties returned in regular mode are:

The properties returned in detail mode are:

Example: Show all Physical Disks

This example displays the basic information about the physical disk attached to a virtual machine.

dpmhv-getPhysDisks -host hvserver