当前位置: 动力学知识库 > 问答 > 编程问答 >

pptp - Automatic VPN Creation (Preferrably with VBScript)

问题描述:

I'm looking for a way to create a VPN connection automatically.

The connection should requires a Smartcard, use PPTP and disable using the remote default gateway.

So far all I could find was CMAK (Which does works but forces sort of a welcome window before the actual connection) and key emulation with VBScript (.SendKey).

The plan is to implement it within an HTA file, along with some other installations that are already set.

So far everything is written with VB, but if there isn't a solution there I could use anything else that would work.

网友答案:

I actually found the answer... Apparently all VPNs are located in the rasphone.ras file at "C:\Users\All Users\Application Data\Microsoft\Network\Connections\Pbk", which you can modify with Notepad, it's not encrypted or anything. I simply use the script to paste a pre-saved VPN settings list, then all you have to do is refresh (F5) the Network Connections page.

分享给朋友:
您可能感兴趣的文章:
随机阅读: