Jump to content

Start VPN network connection


Guest JPB
 Share

Recommended Posts

Hi,

under Windows XP I created a VPN connection to a remote computer.

I would like to create a script that could start this VPN connection automatically after login.

Please help ?

How can I start a Network connection trough AutoIT. I know how to push the connect button automatically, but I have no succes at this moment on starting the connection window.

Please advise.

Jean-Paul

Edited by JPB
Link to comment
Share on other sites

Hi,

under Windows XP I created a VPN connection to a remote computer.

I would like to create a script that could start this VPN connection automatically after login.

Please help ?

How can I start a Network connection trough AutoIT. I know how to push the connect button automatically, but I have no succes at this moment on starting the connection window.

Please advise.

Jean-Paul

<{POST_SNAPBACK}>

runwait("Rasdial.exe connectionname username password")

We have enough youth. How about a fountain of SMART?

Link to comment
Share on other sites

  • 6 months later...

Alternative that uses saved username/password:

runwait("Rasphone.exe -d connectionname")

Rasdial works the same way ... the username/password combination makes sure it isn't prompting you for a username/password when Windows "forgets" its settings ... an all to familiar occurrence with Windows it seems....

We have enough youth. How about a fountain of SMART?

Link to comment
Share on other sites

Do you guys realize this post was answered over 6 months ago? I don't think the original poster needs any clarification anymore.

Sure do .... A neat thing happens when someone answers a post though. It shows up as a recent post. I was simply clarifying the information for anyone else who needed the information.

We have enough youth. How about a fountain of SMART?

Link to comment
Share on other sites

  • 3 years later...

runwait("Rasdial.exe connectionname username password")

Thank you! While I'm not the OP, I was looking for an answer to something similar like this.

Appreciate it! =^.^=

PS -- And who says no-one uses the forum 'search' function? ::grin::

Link to comment
Share on other sites

  • 8 years later...
  • 1 month later...

hi all

you can use

Rasdial.exe "Connection name" username password /PHONEBOOK:"THE PBK FILE FULL PATH"

this command try to connect you vpn saved on a pbk file

How can create PBK File?

send 

Rasphone.exe -f "THE PBK FILE FULL PATH"

command on cmd this while show window you can create own vpn config and name and save this

to disconnect:

Rasdial.exe "Connection name" /DISCONNECT

 

 

Link to comment
Share on other sites

  • Developers

Welcome @soheil1234,

Wondering why you elected to post in this thread as well?
Have you actually read through the thread and seen it is only some 13 years old and focused on WinXP?

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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