RAS_CreateVPNConnection
Description
Creates a VPN connection
Syntax
RAS_CreateVPNConnection(sConnectionName, sIPAddress, sVPNType) As Boolean
Parameters
sConnectionName (String)
A friendly name for the connection
sIPAddress (String)
IP address (such as microsoft.com or 157.54.0.1)
sVPNType (String)
Type of VPN. Can be PPTP, L2TP, IPSEC or Automatic
Example
VBScript
If bStatus Then bStatus = RAS_CreateVPNConnection("ACME VPN", "127.0.0.1", "Automatic")
Related functions
RAS_IsRasInstalled RAS_GetConnectionPath RAS_SetTCPIPProperties RAS_SetUIProperties RAS_SetVPNSecurityProperties RAS_DeleteConnection