Force VPN on bootup (VPN as a Service)

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

Is there a way to force a VPN connection from a W2K Client
to a W2K Server? I can setup a manual connection, but I'd
like the connection to be always active and not require a
user to manually connect to the VPN network.
 
Create a batch file and put into the user's startup folder. The CLI command
for connecting to a VPN server is:

rasdial "connection name" "username" "password"

You may want to encrypt the file giving only the one user access to it since
you're storing sensitive data in it.
 
Jack,

I have tried that, but I have mapped drives across the VPN
and the mapping takes place before the startup folder. Any
other suggestions?

STeve
 
Have you tried using the Task Scheduler to run the batch file at login or
even setting it up as a login script in the user's profile?
The script would look something like this - you want to remove the mappings
first, make the connection and then, re-map the remote drives:

@echo off
cls
color 0a
echo Removing Existing Mappings...
net use /del * /y
color 0b
echo Establishing VPN Connection...
rasdial connectionname username password
color 0c
echo Reconnecting Network Drives...
net use z: \\server\DigitalCamera /user:jack password
net use y: \\server\share
net use x: \\server\root
net use w: \\server\wwwroot
net use v: \\server\export
net use u: \\server\nero_stuff
exit
 
Back
Top