如何在Windows上设置VPN启动

时间:2011-10-31 08:59:17

标签: windows service vpn authentication

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

1 个答案:

答案 0 :(得分:2)

在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

上面的内容是 here

您没有指定操作系统版本,所以我别无选择,只能寻找一般解决方案,而不是直接回答您。