Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: Problems with Windows 10. Tasks are scheduled, repetitions is postponed on each cycle, but are not attempted to run

$
0
0
This is a very strange issue.
I've been using your library for almost a year now (thank you!) and never encountered any issue that wasn't from my own errors.

Now I've found out that the same task configuration that works perfectly under Windows 7 and 8, on x86/x64 and different languages, is failing on Windows 10.

I've tested on 2 different virtual machines, using different Windows 10 installation files and I have the same strange behavior on both.

Basically tasks won't launch when supposed to by daily or login repetition triggers.
They can also be launched manually and launch once on user login, but but repetitions are postponed each time they should run, without any indication that they were attempted to run on tasks history (it is enabled).

There are no conditions I can see that would prevent them to be run (such as being on battery or only on idle). Plus, like I mentioned the exact same program is able to create scheduled tasks which execute flawlessly on previous Windows version.
I even exported the XML from a Windows 7 x64, imported it into a clean Windows 10 VM and it has the same issue.

I'm pasting the XML export of the task, do you need any part of the code?
I think the XML is easier to follow, but let me know if you'd like the code.

Please let me know if you need further information.
Any help would be greatly appreciated, since now we are over 20% of adoption for Windows 10, so this is affecting me greatly.

Thank you.

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2016-06-02T16:32:22.334-08:00</Date>
    <Description>Test</Description>
    <URI>\TestTask</URI>
  </RegistrationInfo>
  <Triggers>
    <CalendarTrigger>
      <Repetition>
        <Interval>PT15M</Interval>
        <StopAtDurationEnd>false</StopAtDurationEnd>
      </Repetition>
      <StartBoundary>2016-06-02T16:32:22.334-08:00</StartBoundary>
      <Enabled>true</Enabled>
      <ScheduleByDay>
        <DaysInterval>1</DaysInterval>
      </ScheduleByDay>
    </CalendarTrigger>
    <LogonTrigger>
      <Repetition>
        <Interval>PT15M</Interval>
        <StopAtDurationEnd>false</StopAtDurationEnd>
      </Repetition>
      <Enabled>true</Enabled>
      <Delay>PT1M</Delay>
    </LogonTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>S-1-5-21-2302200855-1744179440-2378765128-1002</UserId>
      <LogonType>InteractiveToken</LogonType>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>true</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <Duration>PT10M</Duration>
      <WaitTimeout>PT1H</WaitTimeout>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>PT0S</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>C:\Users\user\Downloads\TestTask.exe</Command>
    </Exec>
  </Actions>
</Task>

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>