Get-SCCapabilityProfile

Gets a capability profile.

Syntax

Get-SCCapabilityProfile
   [-Name <String>]
   [-VMMServer <ServerConnection>]
   [-OnBehalfOfUser <String>]
   [-OnBehalfOfUserRole <UserRole>]
   [<CommonParameters>]
Get-SCCapabilityProfile
   -ID <Guid>
   [-VMMServer <ServerConnection>]
   [-OnBehalfOfUser <String>]
   [-OnBehalfOfUserRole <UserRole>]
   [<CommonParameters>]

Description

The Get-SCCapabilityProfile cmdlet gets one or more capability profile objects in Virtual Machine Manager (VMM).

Examples

Example 1: Get a capability profile by its name

PS C:\> Get-SCCapabilityProfile -Name "CapabilityProf01"

This command gets the capability profile object named CapabilityProf01 and displays information about the object to the user.

Example 2: Get a capability profile by using the on behalf of parameters

PS C:\> $UR = Get-SCUserRole -Name "UR01"
PS C:\> Get-SCCapabilityProfile -Name "CapabilityProf01" -OnBehalfOfUserRole $UR -OnBehalfOfUser "user01@contoso.com"

The first command gets the user role object named UR01 and stores the object in the $UR variable.

The second command gets the capability profile object named CapabilityProf01 filtered by the user role stored in $UR and by the on behalf of user named user01@contoso.com. The cmdlet then displays information about the object to the user.

Required Parameters

-ID

Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Name

Specifies the name of a VMM object.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OnBehalfOfUser

Specifies a user name. This cmdlet operates on behalf of the user that this parameter specifies.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OnBehalfOfUserRole

Specifies a user role. To obtain a user role, use the Get-SCUserRole cmdlet. This cmdlet operates on behalf of the user role that this parameter specifies.

Type:UserRole
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

CloudCapabilityProfile

This cmdlet returns a CloudCapabilityProfile object.