Script to automate network VPN connection



Basically I want to automate connecting to my Office VPN, modifying route
tables to enable browsing while I am still connected to my office VPN.
Currently this is what I do manually

1. Start -> Connect to -> My Office VPN
2. This connection is set up so that it depends on my ISP Connection
3. So it opens a dialog box with my save userId Pwd on which I click OK
4. Once this is done I run a cmd file which has these commands
route delete
route add mask my.isp.default.gateway
route add mask

Now I want to create a script which will do all this and I intend to add it
to my startup so that when I login to my PC it just establishes my Office VPN
and at the same enables me to connect to Internet without.


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question