Force VPN on bootup (VPN as a Service)

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.
 
J

Jack Seredyniecki

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.
 
S

Steve

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
 
J

Jack Seredyniecki

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top