Windows Server 2008 R2 - Scheduled Task randomly executes script


i having issue windows scheduled task executes vbs script.  i have same script running same configuration on server without issue. task shows starts , completes without issue the vbs script not being executed. have other windows scheduled tasks configured on server issues running without issues.  i have noticed when delete task , re-create run first time without issue, beyond random.  hoping has answer bizarre behavior.   below xml configured task:

<?xml version="1.0" encoding="utf-16"?>
<task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <registrationinfo>
    <date>2016-02-27t10:51:58</date>
    <author>administrator</author>
  </registrationinfo>
  <triggers>
    <timetrigger>
      <repetition>
        <interval>pt1h</interval>
        <stopatdurationend>false</stopatdurationend>
      </repetition>
      <startboundary>2016-02-27t11:00:00</startboundary>
      <enabled>true</enabled>
    </timetrigger>
  </triggers>
  <principals>
    <principal id="author">
      <userid>administrator</userid>
      <logontype>password</logontype>
      <runlevel>highestavailable</runlevel>
    </principal>
  </principals>
  <settings>
    <multipleinstancespolicy>stopexisting</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>true</waketorun>
    <executiontimelimit>p3d</executiontimelimit>
    <priority>7</priority>
  </settings>
  <actions context="author">
    <exec>
      <command>c:\inetpub\sendhealth.vbs</command>
      <workingdirectory>c:\inetpub\</workingdirectory>
    </exec>
  </actions>
</task>

i'd check logs.

event viewer\applications\microsoft\windows\taskscheduler\operational

 

 

 


regards, dave patrick ....
microsoft certified professional
microsoft mvp [windows]

disclaimer: posting provided "as is" no warranties or guarantees , , confers no rights.



Windows Server  >  Server Manager



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

0x300000d errors in Microsoft Remote Desktop client