Get-SCRunAsAccountConsumer

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

Description

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

For more information about Get-SCRunAsAccountConsumer, type: "Get-Help Get-SCRunAsAccountConsumer -online".

Parameters

RunAsAccount

Required? false
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a Run As account that contains credentials with permission to perform this action.

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

Examples

1. Get the load balancers that use a specified Run As account.
PS C:\> $RunAsAcct = Get-SCRunAsAccount -Name "LBRunAsAcct01" 
PS C:\> $RAAConsumers = Get-SCRunAsAccountConsumer -RunAsAccount $RunAsAcct
PS C:\> $RAAConsumers 
The first command gets the Run As account object named LBRunAsAcct01 and 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 stores the consumer objects in the $RAAConsumers variable.

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

See Also