Solved

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

Posted on 2004-09-16
9
191 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
Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

 
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

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…
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

717 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