Solved

VPN Script

Posted on 2006-10-27
5
1,212 Views
Last Modified: 2008-03-14
Our network team has changed the VPN configuration and I need to change all our systems that connect to the VPN.  I would like to do this via script, but I am asking for asstance.  I am not a programer, but I what to create a new or modify the existing VPN connection via script.  It has been mentioned that I need to modify the rasphone.pbk but how?  

Thanks in advanced.

0
Comment
Question by:mchristo63
  • 3
5 Comments
 
LVL 15

Expert Comment

by:Raisor
Comment Utility
Hi,

As long as no expert is able to provide a "ready to use" solution ... I'd like to suggest this link: http://search.cpan.org/~mblaz/Win32-RASE-1.01/RASE.pm

... since you've stated that you're not a programmer I doubt that my suggestion can be as helpful as you expect ... but maybe you have a team member or someone close enough to your team that is able to adopt the suggested information ...


Best regards,
Raisor
0
 
LVL 18

Expert Comment

by:JoseParrot
Comment Utility
Hi,

Maybe you can post your existing scripts, decribe its results end exactly what you expect from the new script.
Of course, for security reasons, you must modify the sensible informations, as servers names, IPs, and so on.
You may post such modified script in http://www.ee-stuff.com and follow the instructions there to relate the code to this answer.

If you don't know which are the sensible information in your script, then it is better to not post it in ee-stuff. In such case, you may want the support of a collegue, as suggested by Raisor.

Jose
0
 
LVL 18

Expert Comment

by:JoseParrot
Comment Utility
Hi,

Just now I noticed.. I forgot to include some info on rasphone.pbk.
This file is maintained by using the rapshone.exe Windows program.

This file is used by Windows to store your phone book, to be used by dialers.
The script that invokes this file probably use the rasdial command, like:

rasdial MyOffice
to call the phone number registered as MyOffice

rasdial "office 2" /callback:555-0100  
to connect to the OFFICE 2 of rasphone.pbk and specify a callback number.

rasdial "NYC branch" /d
to disconnect from the NYC branch.

Jose
0
 

Author Comment

by:mchristo63
Comment Utility
Aren't all the parameters in the rasphone.pbk?  I can open it up in notepad and it's like an .ini.  Basically all I need to do is change some settings in the properties of the current VPN connection.  Can I just make a VPN connection, an dthe copy this new rasphone.pbk to the PC's that need updated?  

Thanks
0
 
LVL 18

Accepted Solution

by:
JoseParrot earned 500 total points
Comment Utility
All parameter for dialing are there. BTW, "pbk" file type means "phone book". Just that. So, if you want OFFICE1 to have a new phone number, you may change it in the phonebook.

Take a look at your script if there are rasdial commands. The syntax ir prety simple, as in the samples I post before.

You can copy the rasphone.pbk from one to other PC.
To maintain the rasphone.pbk file you may preffer to use the rasphone.exe instead of editing the pbk file directly, althought it is allowed.

To invoke such application, go to
Start->Run->rasphone
This application will ask you several informations needed for dialing.

Jose
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

762 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

7 Experts available now in Live!

Get 1:1 Help Now