通过cmd设置VPN

发布于 2024-12-28 12:57:23 字数 1549 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

乞讨 2025-01-04 12:57:23

您可以尝试直接从 Java 使用 RAS API

如果您想从纯 CMD 创建 VPN 连接,我会尝试将连接信息附加到用户配置文件中的 rasphone.pbk 文件(%APPDATA%\Microsoft\Network\Connections\Pbk\rasphone.pbk )。

有关更多想法,请参阅如何以编程方式创建 Windows VPN 连接?

You can try to use RAS API directly from Java.

If you want to create VPN connection from pure CMD, I'd try to append connection info to rasphone.pbk file in user's profile (%APPDATA%\Microsoft\Network\Connections\Pbk\rasphone.pbk).

For more ideas see How can I programmatically create a Windows VPN connection?

又怨 2025-01-04 12:57:23

Cisco VPN 可以使用命令行进行连接。您可以创建自己的脚本文件,使用 CLI 命令来执行例行任务,例如连接到公司服务器、运行报告,然后断开与服务器的连接。
要显示所有 VPN Client 命令的列表,请转至包含 VPN Client 软件的目录,然后在命令行提示符下输入 vpnclient 命令:
http://www.cisco.com/en/US/docs/security/vpn_client/cisco_vpn_client/vpn_client46/administration/guide/vcAch5.html

Cisco VPN can connect using the Command line.You can create your own script files that use the CLI commands to perform routine tasks, such as connect to a corporate server, run reports, and then disconnect from the server.
To display a list of all VPN Client commands, go to the directory that contains the VPN Client software, and enter the vpnclient command at the command-line prompt:
http://www.cisco.com/en/US/docs/security/vpn_client/cisco_vpn_client/vpn_client46/administration/guide/vcAch5.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文