Server 2016, scheduled tasks auto triggered right after server reboot

X

Xiang Zhu

Hello,

I've a very strange problem on windows server 2016 scheduled task.

The only task trigger is : "On a schedule" every day at 0H and repeats every 6 hours, so 4 times per day.

Everytime the server (tested on 2 severs and several times already) rebooted, all the tasks were automatically triggered even if it was not at the configured trigger time.

The default windows system tasks don't have such issue.


From the issue tasks' log, it says it was triggered by a time trigger condition:

Task Scheduler launched "{ffdb7acd-817d-4dcf-9bf0-30b31e8c23d3}" instance of task "\taskName1" due to a time trigger condition.


Please find hereunder the task xml export:

<?xml version="1.0" encoding="UTF-16"?>

-<Task xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task" version="1.2">


-<RegistrationInfo>

<Date>2018-06-07T17:37:12.5251385</Date>

<Author>user1</Author>

<URI>\taskName1</URI>

</RegistrationInfo>


-<Triggers>


-<CalendarTrigger>


-<Repetition>

<Interval>PT6H</Interval>

<StopAtDurationEnd>false</StopAtDurationEnd>

</Repetition>

<StartBoundary>2018-06-07T18:00:00</StartBoundary>

<Enabled>true</Enabled>


-<ScheduleByDay>

<DaysInterval>1</DaysInterval>

</ScheduleByDay>

</CalendarTrigger>

</Triggers>


-<Principals>


-<Principal id="Author">

<UserId>S-1-5-21-737141563-101260960-3211280587-202452</UserId>

<LogonType>S4U</LogonType>

<RunLevel>LeastPrivilege</RunLevel>

</Principal>

</Principals>


-<Settings>

<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>

<DisallowStartIfOnBatteries>false</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>

<WakeToRun>false</WakeToRun>

<ExecutionTimeLimit>PT5H50M</ExecutionTimeLimit>

<Priority>7</Priority>


-<RestartOnFailure>

<Interval>PT5M</Interval>

<Count>3</Count>

</RestartOnFailure>

</Settings>


-<Actions Context="Author">


-<Exec>

<Command>powershell</Command>

<Arguments>"myTaskArgs"</Arguments>

</Exec>

</Actions>

</Task>


Any helps are appreciated.

Regards.

Continue reading...
 

Similar threads

D
Replies
0
Views
245
DigitalJakeT
D
D
Replies
0
Views
223
DennisWage
D
D
Replies
0
Views
218
DanFlak
D
Back
Top Bottom