InvokeCommandCommand.RunAsAdministrator Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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