共用方式為


InvokeCommandCommand.EnableNetworkAccess Property

Definition

When set and in loopback scenario (localhost) this enables creation of WSMan host process with the user interactive token, allowing PowerShell script network access, i.e., allows going off box. When this property is true and a PSSession is disconnected, reconnection is allowed only if reconnecting from a PowerShell session on the same box.

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

Property Value

Attributes

Applies to