Describe the Bug
When I want to create a scheduled task that runs every minute, indefinitely, I need to use an exec resource that runs
schtasks /create /SC minute ...
instead of scheduled_task, because the latter is not capable of creating an equivalent task (trigger).
Expected Behavior
Being able to define a scheduled task with a One time trigger that runs every minute, indefinitely (this is what above schtasks command does).
Steps to Reproduce
Try to define a scheduled_task with a once trigger that repeats every minute, indefinitely. Due to the restrictions on start_date, start_time and minutes_duration it is not possible to get the exact same result as with schtasks.
Environment
Additional Context
Task trigger created by above command looks like (in Task Scheduler)
- Trigger: "One time"
- Details: "At on - After triggered, repeat every 00:01:00 indefinitely."
Bonus: With schtasks, I can provide the command to execute simply as "powershell", whereas with scheduled_task I need to specify the full path...
Describe the Bug
When I want to create a scheduled task that runs every minute, indefinitely, I need to use an
execresource that runsinstead of
scheduled_task, because the latter is not capable of creating an equivalent task (trigger).Expected Behavior
Being able to define a scheduled task with a
One timetrigger that runs every minute, indefinitely (this is what aboveschtaskscommand does).Steps to Reproduce
Try to define a
scheduled_taskwith aoncetrigger that repeats every minute, indefinitely. Due to the restrictions onstart_date,start_timeandminutes_durationit is not possible to get the exact same result as withschtasks.Environment
Additional Context
Task trigger created by above command looks like (in Task Scheduler)
Bonus: With
schtasks, I can provide the command to execute simply as "powershell", whereas withscheduled_taskI need to specify the full path...