Skip to content

RAS\_SetVPNSecurityProperties

VB Scripting Library > RAS (Remote Access Services) functions

Setup the security properties for an existing RAS connection

RAS_SetVPNSecurityProperties(sConnectionName, bUseCurrentCredentials, bDataEncryptionRequired) As Boolean

sConnectionName (String)

A friendly name for the connection

bUseCurrentCredentials (Boolean)

Automatically use windows logon and password (and domain if any)

bDataEncrytionRequired (Boolean)

Require data encryption (and disconnect if none)

VBScript

If bStatus Then bStatus = RAS_SetVPNSecurityProperties("ACME", True, True)

Scripting Guidelines

RAS_SetTCPIPProperties RAS_SetUIProperties