Windows计划任务以延迟启动运行

时间:2018-01-31 00:11:23

标签: batch-file scheduled-tasks

我有一个批处理文件,它被设置为在Windows Server 2008 SP2上作为计划任务运行。

批处理文件的内容如下:

cscript ".\Scripts\ProcessImport.wsf" > .\Logs\Import.log

任务计划在每天02:00和16:30运行。 02:00运行总是延迟至少几个小时,但16:30运行总是按时开始。

我已删除并重新创建了该任务,但问题仍然存在。

已选择的计划任务设置为:

  1. (常规)运行用户是否已登录
  2. (条件)如果只有计算机处于交流电源,则启动任务如果计算机切换到电池电源则停止
  3. (设置)允许任务按需运行
  4. (设置)如果任务超过3天,则停止该任务
  5. (设置)如果正在运行的任务未在请求时结束,请强制它停止。
  6. 当时服务器上没有其他任何东西在运行,但它仍然被延迟。

    之前是否有人遇到类似的问题并修复过它?

    这是我的任务:

    "HostName": ""
    "TaskName": "\RunETL_2am"
    "Next Run Time": "3/02/2018 2:00:00 AM"
    "Status": "Ready"
    "Logon Mode": "Interactive/Background"
    "Last Run Time": "2/02/2018 3:31:44 AM"
    "Last Result": "0"
    "Author": ""
    "Task To Run": "Multiple actions"
    "Start In": "Multiple actions"
    "Comment": "Runs all three ETLs Export, Transform, Load in single job. The Transform and Load scripts/processes are built to wait for the previous job to finish before they start doing anything."
    "Scheduled Task State": "Enabled"
    "Idle Time": "Disabled"
    "Power Management": "Stop On Battery Mode, No Start On Batteries"
    "Run As": "*"
    "Delete Task If Not Rescheduled": "Enabled"
    "Stop Task If Runs X Hours and X Mins": "72:00:00"
    "Schedule": "Scheduling data is not available in this format."
    "Schedule Type": "Daily "
    "Start Time": "2:00:00 AM"
    "Start Date": "31/01/2018"
    "End Date": "N/A"
    "Days": "Every 1 day(s)"
    "Months": "N/A"
    "Repeat: Every": "Disabled"
    "Repeat: Until: Time": "Disabled"
    "Repa Until: Duration": "Disabled"
    "Repeat: Stop If Still Running": "Disabled"
    

0 个答案:

没有答案