Jump to content

Recommended Posts

Posted (edited)

@lightrain125

Familiarize yourself with either the Windows Remote Access Services APIs and/or the Windows RASDial command.  Use your favorite search engine (Google, Bing, DuckDuckGo, etc.).  There's plenty of info and examples on the web.  Then, translate what you've learned in AutoIT commands.  If you run into problems, then come back with your code in-hand and ask for assistance getting past whatever specific issue(s) you're having.  Or if you are lucky and someone is feeling benevolent, maybe they'll write the script for you.

Here's a tip, you can find the existing VPN entries in your user profile (unless you made them available to everyone).  They have a .pbk extension.  Specifically, they can be found in this directory: 

%userprofile%\AppData\Roaming\Microsoft\Network\Connections\Pbk

The .pbk files are in INI file format.  So if you wanted to go the easiest route, you could use AutoIt INI file functions to modify the entries and the rasdial command to connect to the VPN.

Happy scripting!

:thumbsup:

Edited by TheXman

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...