Share via


Set method of the PS_VpnConnectionProxy class

Configures the web proxy for a VPN connection.

Syntax

uint32 Set(
  [in]  boolean            AutoDetect,
  [in]  string             AutoConfigurationScript,
  [in]  string             ProxyServer,
  [in]  boolean            BypassProxyForLocal,
  [in]  string             ExceptionPrefix[],
  [in]  string             ConnectionName,
  [in]  boolean            PassThru,
  [out] VpnConnectionProxy cmdletOutput
);

Parameters

AutoDetect [in]

true to automatically detect proxy settings; otherwise, false.

AutoConfigurationScript [in]

The web proxy auto detection (WPAD) script for automatic web proxy configuration.

ProxyServer [in]

The web proxy server address and port number pair, separated by a colon.

BypassProxyForLocal [in]

true to bypass the web proxy for local (intranet) addresses; otherwise, false.

ExceptionPrefix [in]

The prefixes of the addresses for which no web proxy should be used.

ConnectionName [in]

The name of the VPN connection profile.

PassThru [in]

true to return the VpnConnectionProxy object that contains the proxy configuration for the VPN connection; otherwise, false.

cmdletOutput [out]

When this method returns, contains the VpnConnectionProxy object.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\RemoteAccess\Client
MOF
VPNClientPSProvider.mof
DLL
VPNClientPSProvider.dll

See also

PS_VpnConnectionProxy