PSRemotingBaseCmdlet.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.

C++
public:
 virtual property System::Management::Automation::SwitchParameter RunAsAdministrator { System::Management::Automation::SwitchParameter get(); void set(System::Management::Automation::SwitchParameter value); };

Property Value

Attributes

Applies to

Produto Versións
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0