Previous Topic: dpmhv-ShowHosts (Funclet) Command--Show all Hyper-V ServersNext Topic: dpmhv-ShowSCVMMHardwareProfiles (Funclet) Command--Show all SCVMM Hardware Profiles


dpmhv-ShowLogicalDisks (Funclet) Command--Show all Logical Disks

The dpmhv-ShowLogicalDisks command displays all logical disks attached to a Windows system. The specified system can be Hyper-V server or a Windows system with remote WMI enabled. This command determines the location of a VM in the Windows file system of a remote Hyper-V server.

This command has the following format:

dpmhv-showLogicalDisks 
-host hostname 
[-retval]
[-silent]
[-detail]
-host hostname

Specifies the name of the 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 list of logical disks.

Return Value

The dpmhv-ShowLogicalDisks command returns an array of objects which represents the logical disk attached to a specified host.

The following properties are returned in regular mode:

The following properties are returned in detail mode:

Example: Show all Logical Disks

This example returns the list of logical disks attached to the host.

dpmhv-showLogicalDisks -host hvserver