RAS\_SetTCPIPProperties
VB Scripting Library > RAS (Remote Access Services) functions
Description
Section titled “Description”Setup advanced TCP/IP settings for an existing RAS connection
Syntax
Section titled “Syntax”RAS_SetTCPIPProperties(sConnectionName, bUseRemoteGateway, sIPAddress, sPrimaryDNS, sSecondaryDNS, sPrimaryWINS, sSecondaryWINS) As Boolean
Parameters
Section titled “Parameters”sConnectionName (String)
A friendly name for the connection
bUseRemoteGateway (Boolean)
Use default gateway on Remote Network
sIPAddress (String)
If you want to use a static IP on remote Network
sPrimaryDNS (String)
Primary DNS
sSecondaryDNS (String)
Secondary DNS
sPrimaryWINS (String)
Primary Wins
sSecondaryWINS (String)
Secondary Wins
Example
Section titled “Example”VBScript
If bStatus Then bStatus = RAS_SetTCPIPProperties("ACME VPN", False, "10.1.1.65", "10.1.1.2", "", "10.1.1.164", "")Related funtions
Section titled “Related funtions”RAS_SetUIProperties RAS_SetVPNSecurityProperties