
AT Schedules In Task Scheduler
I am programatically creating AT schedules using the NTScheduleAddJob
API. The schedules are being created fine. However, if I run this
code on a machine that has the Task Scheduler installed, and I look at
the task through the task scheduler UI, the task details contain one
mysterious thing. The end date is set to be the date after which all
of the specified days are run. Therefore, if I set a schedule with
the DaysOfWeek = 127 (indicates to run every day of the week), the end
date will be set to one week later.
My ultimate goal is to create a task that runs every day and has no
end date. I have to create the schedule using the above mentioned
API. I should state that this problem does not show up on machines
without Task Scheduler.
Any help would be greatly appreciated.