Solved

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

Posted on 2004-09-19
7
395 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
ID: 12098966
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
ID: 12098975
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
ID: 12099710
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
ID: 12100373
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Loss of RDP via youngzsoft.com/cn 4 225
Windows 8 in a W2K Domain 7 581
Making a spare domain pc 12 324
Auto kill system process when exceeding 80% CPU in windows 2000 8 211
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…
A customer recently asked me about anti-malware and the different deployment options available for his business. Daily news about cyberattacks, zero-day vulnerabilities, and companies that suffered a security breach made him wonder if the endpoint a…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

864 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

20 Experts available now in Live!

Get 1:1 Help Now