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

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

Property Value

Applies to

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