Windows 任务计划程序问题(不断重新启动任务)

Windows 任务计划程序问题(不断重新启动任务)

我正在尝试将 OpenVPN 配置为在登录时自动启动和连接。大多数情况下,我的设置无论启动、运行和重新启动都有效。这种情况会一直持续下去。此外,任务的状态永远是“正在运行”。

这是我的作业的配置:

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2015-06-24T20:13:08.9260548</Date>
    <Author>JAKE-PC\Jacob</Author>
    <Description>OpenVPN LDN</Description>
  </RegistrationInfo>
  <Triggers>
    <LogonTrigger>
      <Enabled>true</Enabled>
      <UserId>JAKE-PC\Jacob</UserId>
    </LogonTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>JAKE-PC\Jacob</UserId>
      <LogonType>InteractiveToken</LogonType>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
    <UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>%windir%\System32\cmd.exe</Command>
      <Arguments>/c start "OpenVPN" "C:\Program Files\OpenVPN\bin\openvpn-gui.exe" --connect LDN-DDoS-Protected.ovpn</Arguments>
    </Exec>
  </Actions>
</Task>

发生这种情况有什么原因吗?另外,如果我可以提供任何其他信息来帮助解决此问题,请告诉我...

先感谢您!

相关内容