Get-SCCapabilityProfile

Get-SCCapabilityProfile

Gets a capability profile.

構文

Parameter Set: FromName
Get-SCCapabilityProfile [-Name <String> ] [-OnBehalfOfUser <System.String> ] [-OnBehalfOfUserRole <Microsoft.SystemCenter.VirtualMachineManager.UserRole> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

詳細説明

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

パラメーター

-Name<String>

Specifies the name of a VMM object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-OnBehalfOfUser<System.String>

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-OnBehalfOfUserRole<Microsoft.SystemCenter.VirtualMachineManager.UserRole>

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • CloudCapabilityProfile

Example 1: Get a capability profile by its name

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

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

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

The first command gets the user role object named UR01, and then 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.

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

関連トピック

New-SCCapabilityProfile

Remove-SCCapabilityProfile

Set-SCCapabilityProfile

Test-SCCapabilityProfile

Get-SCUserRole