Previous Topic: dpmhv-ShowSCVMMHardwareProfiles (Funclet) Command--Show all SCVMM Hardware ProfilesNext Topic: dpmhv-ShowTemplates (Funclet) Command--Show Templates on a Hyper-V Host


dpmhv-ShowSCVMMOSProfiles (Funclet) Command--Show all Guest OS Profiles

The dpmhv-ShowSCVMMOSProfiles command displays all guest operating system (OS) profiles that are available for a VM while creating a VM using the SCVMM template.

This command has the following format:

dpmhv-showSCVMMOSProfiles 
-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-ShowSCVMMOSProfiles command returns an array of objects which represents a guest OS profile on the specified SCVMM library server.

The following properties are returned in regular mode:

The following properties are returned in detail mode:

Example: Show all Guest OS Profiles

This example displays the guest OS profiles on the SCVMM library server SCVMMLibSrv:

dpmhv-showSCVMMOSProfiles 
-scvmmHost SCVMMLibSrv

Example: Show all Guest OS Profiles without Password

This example displays all guest OS profiles without an Administrator password.

profs = dpmhv-showSCVMMOSProfiles -scvmmHost SCVMMLibSrv -retval -silent
    for each(prof in profs)
    {
      if(prof.AdminPasswordHasValue=="false")
        ? prof.Name,"does not have an Admin password defined"
    }