Get-SCRunAsAccountConsumer

Get-SCRunAsAccountConsumer

Gets the Run As account consumer objects for a specified Run As account.

構文

Parameter Set: Default
Get-SCRunAsAccountConsumer [[-RunAsAccount] <RunAsAccount> ] [-OnBehalfOfUser <System.String> ] [-OnBehalfOfUserRole <Microsoft.SystemCenter.VirtualMachineManager.UserRole> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

詳細説明

The Get-SCRunAsAccountConsumer cmdlet gets the Run As account consumer objects for a specified Run As account. Get-SCRunAsAccountConsumer returns any Virtual Machine Manager (VMM) object that refers to the given Run As account.

パラメーター

-OnBehalfOfUser<System.String>

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-OnBehalfOfUserRole<Microsoft.SystemCenter.VirtualMachineManager.UserRole>

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-RunAsAccount<RunAsAccount>

Specifies a Run As account that contains credentials with permission to perform this action.

エイリアス

none

必須?

false

位置は?

1

既定値

none

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

True (ByValue)

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

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)。

入力

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

出力

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

Example Example 1.: Get the load balancers that use a specified Run As account.:

The first command gets the Run As account object named LBRunAsAcct01, and then stores the object in the $RunAsAcct variable.

The second command gets the Run As account consumer objects for the load balancers that use the Run As account stored in $RunAsAcct, and then stores the consumer objects in the $RAAConsumers variable.

The last command displays the Run As account consumer objects stored in $RAAConsumers.

PS C:\> $RunAsAcct = Get-SCRunAsAccount -Name "LBRunAsAcct01"
PS C:\> $RAAConsumers = Get-SCRunAsAccountConsumer -RunAsAccount $RunAsAcct
PS C:\> $RAAConsumers

関連トピック

Get-SCRunAsAccount