Jump to content
Guest JPB

Start VPN network connection

Recommended Posts

Guest JPB

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

Share this post


Link to post
Share on other sites
sykes

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?

Share this post


Link to post
Share on other sites
Jeepy Fault

Alternative that uses saved username/password:

runwait("Rasphone.exe -d connectionname")

Share this post


Link to post
Share on other sites
sykes

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?

Share this post


Link to post
Share on other sites
AutoChris

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

Share this post


Link to post
Share on other sites
sykes

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?

Share this post


Link to post
Share on other sites
Jmtyra

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::

Share this post


Link to post
Share on other sites
nguyenbason

I don't think you need to reply a topic 4 years old.


UnderWorldVN- Just play the way you like it

Share this post


Link to post
Share on other sites
Jmtyra

I don't think you need to reply a topic 4 years old.

Gee, I don't think you should have either. :)

Share this post


Link to post
Share on other sites
UnsteadyReady

*Bump

 

Share this post


Link to post
Share on other sites
soheil1234

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

 

 

Share this post


Link to post
Share on other sites
Jos
Posted (edited)

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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

×