bubbolo Posted November 22, 2006 Share Posted November 22, 2006 hi, I would create with AutoIT3 a script (and then a exe file) to automate the creation of a VPN connection on a pc running windows 2000 or XP. The script must run in silent mode and it must show a msgbox windows only when the VPN connection is created on the pc connection bin. How I can do it? Thanks. bye. Link to comment Share on other sites More sharing options...
theswortz Posted March 16, 2007 Share Posted March 16, 2007 I've been looking in to this too. There is a phonebook file that contains all of the connections that have been created (vpn and dial-up). Google "rasphone.pbk". You can try editing that file and manually creating the vpn connection. After looking at it for awhile though, it seemed very complicated. I have found ways to silently dial connections that have already been created. Lookup "rasdial" and "rasphone". There are some windows api functions to create connections, but from what I saw, it looked like you still had to use a dialog box to create the connection. I am not a very experienced programmer though, so someone else might be able to understand it better than I can. The functions all seemed to start with "ras". Link to comment Share on other sites More sharing options...
ptrex Posted March 16, 2007 Share Posted March 16, 2007 @all If you go to search and type in : +VPN +Connection You get 10's of hits on this subject !! regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
amwmedia Posted July 25, 2007 Share Posted July 25, 2007 yeah, you can just create the connection on your computer. then copy the text from the rasphone.pbk file into your script. If you append those lines to another rasphone.pbk, it'll duplicate the connection. I've tested this for a project I was working on last year. It'll work. Also, for those who aren't interested in this specific problem, but more general vpn info, open a command window and type in rasphone -h that will get you started :-) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now