Hi,
I’m pushing a Task Scheduler to a Win2012 server with the ‘win_scheduled_task’ module. The task successfully applies however I would like to change the trigger to begin on startup. I don’t see an option with the module to change it to startup. Is using the win_scheduled_task my best option?
This is what i’m using.
- name: MyTaskSchedule
win_scheduled_task:
name: "Mytask"
execute: "PowerShell.exe"
argument: "-File C:\scripts\MyScript.ps1"