Share via


New method of the PS_VpnServerAddress class

Creates a VPN server object.

Syntax

uint32 New(
  [in]  string           ServerAddress,
  [in]  string           FriendlyName,
  [in]  boolean          PassThru,
  [out] VpnServerAddress cmdletOutput
);

Parameters

ServerAddress [in]

The address of the remote VPN server that the client connects to. This address is a URL, a friendly name, an IPv4 address, or an IPv6 address.

FriendlyName [in]

The friendly name of the VPN server.

PassThru [in]

true to return the VpnServerAddress object; otherwise false.

cmdletOutput [out]

When this method returns, contains the VpnServerAddress object (if PassThru is true). The ServerAddress and FriendlyName fields are populated.

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_VpnServerAddress