One way you can achieve this is by making a VPN connection type (using
network connection folder). You can then use the rasdial.exe in your script
file to make the vpn connection.
Making a vpn connection type using 'network connection folder':
Go to Control Panel -> Network Connections -> Create A New Connection ->
(Follow the wizard)
Once the new connection is created, you can optionally choose the option to
'Save Password' and 'Dont prompt for password, name ....' so that no prompt
is given while connection is being made.
After connection creation, you can use a script something like -
"rasdial.exe "ENTRYNAME" [other parameters]" to make a vpn connection.
Parameters for rasdial can be obtained by typing "rasdial.exe /?" at command
prompt.
Hope it helps,
Thanks,
Dinesh.