Enable-SCRunAsAccount

Enables a previously disabled Run As account.

Description

The Enable-SCRunAsAccount enables a Run As account in System Center Virtual Machine Manager (VMM) that has been previously disabled using the Disable-SCRunAsAccount cmdlet.

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

Parameters

RunAsAccount

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

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

VMMServer

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

JobGroup

Required? false
Accept Pipeline Input? false
Position? named
Specifies an identifier for a series of commands that will run as a set just before the final command that includes the same job group identifier runs. 

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

VMMServer

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

Examples

1: Enable a Run As accout.
PS C:\> $RunAsAccount = Get-SCRunAsAccount -Name "RunAsAccount01"
PS C:\> Enable-SCRunAsAccount -RunAsAccount $RunAsAccount
The first command gets the Run As account object named RunAsAccount01 and stores the object in the $RunAsAccount variable.

The second command enables the Run As account stored in $RunAsAccount.

See Also