如何在 Windows 启动时设置 VPN

发布于 2024-12-12 12:07:27 字数 47 浏览 0 评论 0原文

需要在 Windows 启动时设置 VPN,无需用户登录(如服务)。 这可能吗?

Need to setup VPN on windows start, without User logon (Like a service).
does it possible?

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

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

发布评论

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

评论(1

兮子 2024-12-19 12:07:27

在 Windows 7 上:

Create a scheduled task named "Auto VPN" or something similar
   Tick the Run whether  user is logged  on or not   
   Tick the Run with highest privileges
   Select Configure for Windows 7, Windows Server 2008 R2 in the Configure For drop down box   
   Create a the trigger for the task and set the Begin the task drop down to At startup
   Create an action for the task and set the action to Start a program
      Set the Program/script to c:\windows\system32\rasdial.exe
      Put the name of the connection to be made in the Add Arguments box*
         *If the name contains spaces you will need to enclose the name in quotation marks
         *You may need to additional rasdial parameters to the Add Arguments box dependant on the connection properties
   Clear all task Conditions

发现上述内容这里

您没有指定操作系统版本,所以我只能寻找通用解决方案,而不是直接回答您。

On Windows 7:

Create a scheduled task named "Auto VPN" or something similar
   Tick the Run whether  user is logged  on or not   
   Tick the Run with highest privileges
   Select Configure for Windows 7, Windows Server 2008 R2 in the Configure For drop down box   
   Create a the trigger for the task and set the Begin the task drop down to At startup
   Create an action for the task and set the action to Start a program
      Set the Program/script to c:\windows\system32\rasdial.exe
      Put the name of the connection to be made in the Add Arguments box*
         *If the name contains spaces you will need to enclose the name in quotation marks
         *You may need to additional rasdial parameters to the Add Arguments box dependant on the connection properties
   Clear all task Conditions

The above was found here.

You didn't specify the Operating System version, so I had no choice but to look for a general solution, rather than answer you directly.

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