Solved

VPN Script

Posted on 2006-10-27
5
1,221 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
[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
  • 3
5 Comments
 
LVL 15

Expert Comment

by:Ralf Klatt
ID: 17822891
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:Jose Parrot
ID: 17825740
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:Jose Parrot
ID: 17825783
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
ID: 17833008
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:
Jose Parrot earned 500 total points
ID: 17833810
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
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…

617 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