Previous Topic: dpmhv-ShowLogicalDisks (Funclet) Command--Show all Logical DisksNext Topic: dpmhv-ShowSCVMMOSProfiles (Funclet) Command--Show all Guest OS Profiles


dpmhv-ShowSCVMMHardwareProfiles (Funclet) Command--Show all SCVMM Hardware Profiles

The dpmhv-ShowSCVMMHardwareProfiles command displays a list of hardware profiles, defined by Microsoft System Center Virtual Machine Manager (SCVMM), that are available for a VM when creating a VM using an SCVMM template.

This command has the following format:

dpmhv-showSCVMMHardwareProfiles 
-scvmmHost scvmmHostname 
[-retval]
[-silent]
[-detail]
-scvmmHost scvmmHostname

(Optional) Specifies the host name of the Microsoft System Center Virtual Machine Manager (SCVMM) library server. This parameter is valid when you use SCVMM integration to provision VMs.

-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 directories.

Return Value

The dpmhv-ShowSCVMMHardwareProfiles command returns an array of objects which represents a hardware profile defined under specified library server.

The following properties are returned in regular mode:

The following properties are returned in detail mode:

Example: Show all SCVMM Hardware Profiles

This example displays the hardware profiles on the SCVMM library server SCVMMLibSrv.

dpmhv-showSCVMMHardwareProfiles 
-scvmmHost SCVMMLibSrv

Example: Show Hardware Profiles for more than one CPU

This example displays all hardware profiles defined for more than one CPU core.

profs = dpmhv-showSCVMMHardwareProfiles -scvmmHost SCVMM -retval -silent
    for each(prof in profs)
    {
      if(prof.CPUCount > 1)
        ? prof.Name, "has more than 1 CPU cores"
    }