How can I programmatically create a Windows VPN connection?

后端 未结 7 909
小鲜肉
小鲜肉 2021-02-01 22:23

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 conne

相关标签:
7条回答
  • 2021-02-01 23:10

    On Windows ras phonebook is stored in a simple ini file that could be found at

    C:\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk

    You could prepare such a file at your computer and then deploy this file to customers by simple copying it to the specified path (or append it's content to the existing one). To display new connection in the Network Connections panel, just refreshed explorer's view (via F5 key), no explorer restart is even needed.

    0 讨论(0)
提交回复
热议问题