Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Automatically Open VPN Connection on Startup

13 May 2010   #1
knoxbury

Windows 7 Professional
 
 
Automatically Open VPN Connection on Startup

In pre-Windows 7 versions of Windows, I was able to setup a VPN connection in Networking and Sharing in the control panel and add a shortcut to that connection in the "Startup" folder. This allowed the VPN connection to connect automatically on startup.

But now, I have tried all methods outlined in the following thread, but none of them work for a VPN connection.

Startup Programs - Change

Any ideas how to get a Windows VPN connection to connect automatically on startup?


My System SpecsSystem Spec
.
13 May 2010   #2
not so gray matter

W7 Ult. x64 | OS X
 
 

Apparently you can use "rasdial" via a batch file to do this. I'm not sure exactly how, but batch files are fairly straight forward so it'd shouldn't be too hard to figure out.

Using rasdial: Networking and Communications

You can also reference this post for more information.

Auto-connect to VPN upon system restart
My System SpecsSystem Spec
13 May 2010   #3
knoxbury

Windows 7 Professional
 
 

Quote   Quote: Originally Posted by notsograymatter View Post
Apparently you can use "rasdial" via a batch file to do this. I'm not sure exactly how, but batch files are fairly straight forward so it'd shouldn't be too hard to figure out.

Using rasdial: Networking and Communications
Thanks, but I think rasdial is more related to dialing into a network through the phone line . . . instead of connecting with a VPN connection across the internet. And the 2nd link was a dead end as well since it also deals with rasdial. These are suggestions, but it seems like the people making these suggestions have never actually made it work in real life.
My System SpecsSystem Spec
.

13 May 2010   #4
knoxbury

Windows 7 Professional
 
 

Ok, I stand corrected, I was able to get a VPN connection to launch using rasdial via a command prompt. The original problem was that the VPN connection had a space in the name and rasdial didn't like this. Once I eliminated the space, I was able to connect by typing rasdial VPNNAME USERNAME PASSWORD.

BUT . . . this did NOT work when using a batch file and adding that batch file to task scheduler. I created a batch file by opening notepad, typing in "rasdial.exe VPNNAME USERNAME PASSWORD" (no quotes) and saving the file as vpn.bat and then opening task scheduler and referencing that file. There were 2 problems with this method.
  1. The VPN username and password are stored as plain text on my computer. Not very secure!
  2. The scheduled task failed with the following error even though I am using an administrator account.
ERROR: The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist. (0x800704DD)
My System SpecsSystem Spec
Reply

 Automatically Open VPN Connection on Startup




Thread Tools





Similar help and support threads
Thread Forum
My pc open file automatically, then automatically shut down
My pc open file automatically, then automatically shut down when I running my pc, it create pop up sound then open file automatically then pc get shut down. watching any video file, this create more problem. when i scan all of my hard drives but any virus or virus activity didnt appear....
General Discussion
Automatically dial a connection
I have setup a broadband dial up connection in Windows but I need to dial it up manually each time I want to connect to the internet. Though I can set setup "always on" option in my router settings but that is NOT what I want. What I want is Windows to automatically dial the said connection as...
Network & Sharing
Connection Teaming automatically in Windows 7?
Hi all, I was just looking for some info on connection teaming in Windows 7. Basically I have one landline connection running at 2megabit/sec, and one unlimited data plan on my mobile phone running at about 12-14megabit/sec. I figured if I could find some way to team these 2 together, I'd have a...
Network & Sharing
Add to IE Url to Automatically Open in New Tab
When I click on one of my favorites in IE (Windows 7), it opens it up in the current tab. Is there any way to force IE to ALWAYS open your urls in new tabs? A setting or some way to change the url?
Browsers & Mail
No connection to Wifi automatically
Win 7 Home premium: When I boot into windows, WiFi signal will spin as if it is looking for a site; however it will not connect. It shows a list of Wifi routers . There are three possible connections that I can use and a listing of over a dozen secured routers from ATT and Comcast. I check...
Network & Sharing
internet connection not automatically connected
i just installed my window 7 and im having problems with my internet, every time i turn my computer on, my internet connection isnt automatically connected. i still have to put the passwords and stuff is there a way that can fix this??
Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 14:06.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App