Partilhar via


InvokeCommandCommand.RunAsAdministrator Property

Definition

When set, PowerShell process inside container will be launched with high privileged account. Otherwise (default case), PowerShell process inside container will be launched with low privileged account.

public:
 virtual property System::Management::Automation::SwitchParameter RunAsAdministrator { System::Management::Automation::SwitchParameter get(); void set(System::Management::Automation::SwitchParameter value); };
public override System.Management.Automation.SwitchParameter RunAsAdministrator { get; set; }
[System.Management.Automation.Parameter(ParameterSetName="ContainerId")]
[System.Management.Automation.Parameter(ParameterSetName="FilePathContainerId")]
public override System.Management.Automation.SwitchParameter RunAsAdministrator { get; set; }
member this.RunAsAdministrator : System.Management.Automation.SwitchParameter with get, set
[<System.Management.Automation.Parameter(ParameterSetName="ContainerId")>]
[<System.Management.Automation.Parameter(ParameterSetName="FilePathContainerId")>]
member this.RunAsAdministrator : System.Management.Automation.SwitchParameter with get, set
Public Overrides Property RunAsAdministrator As SwitchParameter

Property Value

Attributes

Applies to