Automatically Open VPN Connection on Startup

knoxbury

New member
Local time
9:18 AM
Messages
13
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.

http://www.sevenforums.com/tutorials/1401-startup-programs-change.html

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

My Computer My Computer

OS
Windows 7 Professional

My Computer My Computer

Computer Manufacturer/Model Number
Apple Macbook Pro (April 2009)
OS
W7 Ult. x64 | OS X
CPU
Intel Mobile Core 2 Duo 2.93Ghz [T9800 Penryn]
Motherboard
NVIDIA nForce 730i Rev. B1 [Mac-F2268EC8 (U2E1)]
Memory
4096MB Samsung DDR3 Dual Channel [PC3-8500F 1066Mhz]
Graphics Card(s)
NVIDIA GeForce 9600M GT 512MB [G96M Rev. C1]
Sound Card
SB X-Fi Surround 5.1 USB | Onboard Realtek (Disabled)
Monitor(s) Displays
Acer x223wbd 22" | Apple Anti-Glare 17" (Disabled)
Screen Resolution
{Current} 1440x900 {Acer} 1680x1050 {Apple} 1920x1200
Hard Drives
{Internal}
Seagate Momentus 320GB 2.5" 7200RPM [ST9320421AS]

{Externals}
LaCie 320GB USB 2.0 HDD [301284UR]
LaCie 750GB USB 2.0 FW400 eSATA HDD [301314U]
LaCie 1TB USB 2.0 HDD [301304UR]
PSU
Magsafe
Case
Aluminum/Unibody (MBP52)
Cooling
2 x 6000 RPM Fans
Keyboard
Logitech G-15v2 [PN 920-000379]
Mouse
Logitech G-9 [PN 910-000338]
Internet Speed
12Mbps/2.5Mbps w/ 24Mbps Speed Boost [Comcast]
Other Info
Logitech X-540 Speakers [PN 970223-0122]
Sennheiser PC-151 Headset
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 Computer My Computer

OS
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 Computer My Computer

OS
Windows 7 Professional
Back
Top