Link to home
Start Free TrialLog in
Avatar of nttranbao
nttranbao

asked on

Howto activate VPN connection without login in windows XP

I have created a VPN connection in a a windows XP, and put its shortcut in Startup Program. Now the user must log on for the VPN connection to run automatically.

What I want now is to make the VPN connection run automatically when windows boots up,before any users log in. Or you can say, the VPN connection will be activated like the way network connections do: no needs for any user logging on.

Thank you.
Avatar of simsjrg
simsjrg
Flag of United States of America image

I know that the Cisco VPN Client has an option to launch when the user hits CTRL-ALT-DELETE to logon. What type of device are you trying to connect to?
Avatar of Danny_Larouche
Danny_Larouche

The vpn client must be installed as a service
ASKER CERTIFIED SOLUTION
Avatar of Rob Williams
Rob Williams
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry the above is copied from an earlier post and refers to the SafeNet client, rather than the Windows client, though similar options can be used. Updated:

1) If the reason you want the VPN to start before logon is to apply group policy and such you can use the"log on using a dial up connection" option in the logon box, but I don't believe it is available until you join a domain. If selected the Windows VPN connection will be one of the available options.

2) Microsoft has two tools called RASDial and AutoDial, which apparently can be used to configure a the Microsoft VPN connection to connect as a service before logon occurs.:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/rasdial.mspx?mfr=true
http://windowssdk.msdn.microsoft.com/en-us/library/ms719351.aspx
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ras_autodial_overview.mspx?mfr=true

Avatar of nttranbao

ASKER

Thanks all.

Let's make thing more specific. I have a home computer, winxp and a company network. I want to use VPN connection from home to company.

At home computer, I have created VPN connection in windows xp ( Network Connection->new connection->choose VPN and so on..). And the VPN works well. I have put its icon in startup folder so that when I log on to my home computer, it will automatically dial the VPN connection.

The case is : when I am at work and need to access some files/remote desktop the home computer, first I call home to tell my relatives to turn on the computer. I have to give the home logon password for them to logon,and since I put the VPN shortcut in startup folder, it automatically connects VPN to the company.

What I want now is  my relatives just turn on the computer, and the VPN connection will automatically be dialed, NO NEED to log on! I dont want to give password to my relatives. Just turn on the computer for me, and the VPN will start automatically. Just like a virus, it can run without any user logon (ofcourse with system privileges)

Sorry if my bad english puzzles :)




Really the only option for that is to use option 2 as suggested above. The windows client is not intended to be used this way, but others have successfully been able to configure RASDial and/or AutoDial to do so.

The other possibility is to create a VPN connection going the other direction, so you connect to home from the office. So long as the computer is on that will work.

One other option is to use a 3rd party, free, VPN utility called Hamachi. You install it on client and server machines and it creates a VPN tunnel for you. Hamachi requires no port forwarding on the router, and is very easy to install.
http://www.hamachi.cc
to run it as a service, so that it is always on:
http://www.itsatechworld.com/2006/01/17/hamachi-vpn-solution/
batch file to set up service more easily, see near end of thread.
http://forums.hamachi.cc/viewtopic.php?t=522&postdays=0&postorder=asc&highlight=batch&start=15   
RobWill, thanks for the rasdial.exe. Very Good point.
I found 2 ways to install the rasdial.exe as a services.

1. Install a programe ( Noipservices) and make it run as a service. Then I alter the ImagePath to point to the rasdial.exe. Works.

2.Use instsvr.exe and srvany.exe in windows 2003 Resource Kit. Works too but you have to see srvany.exe running in TaskManager all the times :(

Now when the computer starts up, the VPN client "services" runs well, no needs for any user logging on.

Excellent! Glad to hear.
Thanks nttranbao,
--Rob
Hi.
The EASY way to make MS VPN connect before windows logon appears:
Create the wanted VPN connection on the workstation  i.e."myvpn" and test it by connecting mannually
Make "myvpn.bat"  containing only one line:
rasdial.exe myvpn <username> <password>
Make a scheduled task that runs myvpn.bat by system start.