How can I programmatically create a Windows VPN connection?

hurcane picture hurcane · Nov 25, 2008 · Viewed 66.3k times · Source

I have a support environment where we connect to many of our customers' systems using VPN and Remote Desktop. Right now, support personnel have to manually set up the VPN connection on their workstation. Is there a way to programmatically create the VPN connection?

Answer

Jeff Winn picture Jeff Winn · May 8, 2009

Check out the DotRas project on CodePlex, the RasPhoneBook component has full support over managing phone books used by Windows.

http://www.codeplex.com/DotRas

It'll be a lot easier than working with the APIs directly, that much I can guarantee. :)