RAS\_CreateVPNConnection
VB Scripting Library > RAS (Remote Access Services) functions
Description
Section titled “Description”Creates a VPN connection
Syntax
Section titled “Syntax”RAS_CreateVPNConnection(sConnectionName, sIPAddress, sVPNType) As Boolean
Parameters
Section titled “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
Section titled “Example”VBScript
If bStatus Then bStatus = RAS_CreateVPNConnection("ACME VPN", "127.0.0.1", "Automatic")Related functions
Section titled “Related functions”RAS_IsRasInstalled RAS_GetConnectionPath RAS_SetTCPIPProperties RAS_SetUIProperties RAS_SetVPNSecurityProperties RAS_DeleteConnection