I want to establish a VPN connection programmatically (when I run my VB.NET application, the app will create a VPN without the needing the user -runs win2k- establishes the connection). Is it possible to do it programmatically and how or the only way to do it is manually?
Microsoft provides a command-line tool that you can invoke from your application to set up IPsec policy. From the Microsoft website:
"Ipsecpol.exe: Internet Protocol Security Policies Tool Posted: July 13, 2001 * * * Download Download Fileipsecpol_setup.exe 147 KB file 1 min @ 28.8 Kbps Related Links Buy the Windows 2000 Server Resource Kit. Buy the Windows 2000 Professional Resource Kit. * * *There is an equivalent tool (ipseccmd) for Windows XP.
This command-line tool configures Internet Protocol Security (IPSec) policies in the Directory Service, or in a local or remote registry. It does everything that the IPSec Microsoft Management Console (MMC) snap-in does, and is even modeled after the snap-in. IPSecPol has two mutually exclusive modes: dynamic and static. The default mode is dynamic. This tool runs only on Microsoft Windows 2000."
Dig deeper on Managing Virtualization
Related Q&A from Retired Expert - Jack _Keane, Ph. D.
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.