Solved

How to establish an automatic VPN connection after login to a domain (Urgent Help)??

Posted on 2004-09-19
7
393 Views
Last Modified: 2008-01-09
Hi Guys,

   I am facing an issue of how to establish a VPN connevtion to a VPN server automatically (without double click the VPN connvetion icon) after user login to the domain.

I have a LAN with a Domain Controller in my office. People want to establish VPN connections to a remote VPN server after they log on to the local Domain Controller of my office.

Currently they used to double click everytime on the VPN icon on their desktop after they logged on to the Domain Controller.

I have been told that I can write a Login Script and attach it to every user registered in the active directory of the domain controller. In fact I don't I don't know where and how can I find that script.

Your help will be highly appreciated

Regards
Bassam
0
Comment
Question by:Bassam72
  • 2
7 Comments
 
LVL 11

Accepted Solution

by:
Quetzal earned 25 total points
Comment Utility
If you have the vpn connection set up in network and dial-up connections you can launch the connection automatic using a command that looks like this:

rasdial "connection Name" username password /domain:domain name
0
 
LVL 11

Expert Comment

by:Quetzal
Comment Utility
If these servers require a constant connection, consider setting up a router-to-router vpn connection that will make the 2 networks appear to be local to one another.
0
 

Author Comment

by:Bassam72
Comment Utility
Ok, but how can I call this command from the server so that when a user logged on to my local domain controller he can establish the connevtion automatically?

what I mean here is what Login Script that I should write in order to call the command "rasdial" ??

In fact I want to include this script in a group policy or in a user profile.

regards
Bassam
0
 
LVL 2

Expert Comment

by:ndy78
Comment Utility
Here is a way of incorporating this in your logon sequence.

You saved the the logon credentials in the VPN Connection. The name of the VPN connection (on the local machine that should dial out) is VPN.

Connect to your DC, open the sysvol share, doubleclick on your domain name, then open scripts. (ie: \\domsrv\SYSVOL\domain.local\SCRIPTS) Right click somewhere, click New... pick "Text Document".

Put this line in there:
rasdial "VPN"

save the document as logon.bat. Take care that you are able to view file extensions in explorer, othwerwise it will end up beeing its name "logon.bat.txt".

In "Active Directory Users and Computers" double click on the user, go to profile, under logon script enter "logon.bat". Repeat with other uers until done.

That should do it for you.

HTH,
Andy.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now