Solved

Looking for script to have an automatic VPN connection for a DC member

Posted on 2004-09-16
9
189 Views
Last Modified: 2010-05-18
Hi All,
   In my office I have a DC and a number of memberes registered in the DC where they used to use their username and password to login to the DC and start using the resources on the LAN.

Those users used to have a manual VPN connection to the VPN server which is located on main office.

I am looking for a LOGIN SCRIPT that enables those users to get connected to the VPN server automatically after the loging to the DC.

I am looking for your help regarding this matter

Thanks for your support
Bassam
0
Comment
Question by:Bassam72
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 10

Expert Comment

by:dis1931
ID: 12081367
How will they connect to the server if they don't use VPN first?
0
 

Author Comment

by:Bassam72
ID: 12081493
Sorry, I have to make it clearer.

In fact I have a LOCAL domain controller in my office. When users login to the domain controller, every one will double click on the VPN icon to establish a VPN connection to the REMOTE VPN server.

So that instead of making them to double click on that icon, I want to get a login script that can be put on the DC server and mention the path of that LOGIN SCRIPT in their profiles, so that they can establish the VPN connection to a VPN server automatically after they log on to the local domain controller.

Note: The clients are running Windows XP profissional

Regards
Bassam
0
 
LVL 10

Expert Comment

by:dis1931
ID: 12081572
Do they enter any info after clicking the icon?  If not then the login script can simply be just running the shortcut or the actual program that the shortcut points to.  However, if this is not the case then it depends on what kind of VPN you are using and what command line switches they have and what kind of automation they have.
0
Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

 
LVL 2

Expert Comment

by:sqwasi
ID: 12081831
If your wondering how to add in a login script then you have a couple options.  The suggested way with windows XP is through group policies, but more complicated.  You would first need to creat a txt file in notepad that runs your vpn program.  Then make sure you change the extension of the txt file to .bat.  After you have your script file then you just need to add it into the group policy.  Usually you will right click the organizational unit that the users are in and click on properties.  Then you would click on the group policy tab.  You can then creat a new group policy.  Edit that group policy.  Go to the user section and then windows settings and then logon/logoff and then login script.  You will add the BAT file that you created as the login script.

The other way is to just go into active directory users and computers.  Properties of the user.  I believe it is the profile tab and then enter the name of the BAT file.  Then copy the BAT file to the netlogon folder on the DC.  It is in the sysvol dir under the windows directory.

I hope that might be something that you are looking for.
0
 

Author Comment

by:Bassam72
ID: 12081950
Hi  sqwasi,

   Yes, this is what I am looking for, ethier by using group ploicy or by using the user profile at the Active Drectory.

But, what is the script that I should write. The VPN connection that I am using is PPTP only which requires VPN server IP address, user name and password.

In fact all of them (clients) login to the same VPN server by using the same user name and password.

Again my problem is how to write the script and what the script file should includ??

I am waiting your help

Regards
Bassam
0
 
LVL 6

Accepted Solution

by:
tanelorn earned 50 total points
ID: 12084822
Hi,

I would try autoit
you can automate the vpn login procedure..
you can compile your script, into an exe, and call it from your login script.


http://www.hiddensoft.com/autoit3/

T
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
After-hours service is a fact of life for most MSPs. While not the most pleasant aspect of the job, there are ways to make after-hours servicing a more profitable and organized enterprise.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

740 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