On 1/5/23, Joel Moberg wrote:
> Maybe I can adjust the flag in the Trigger object but I have no idea what
> flags are available.
The following loosely adapts Microsoft's time trigger task example,
with commented links to get further information. The property that
directly addresses your question
I haven’t seen a response for this yet, but… I have done work with the
TaskScheduler in powershell, and in powershell you can do something like this:
PS C:\Users\Administrator.DOMAIN> (Get-ScheduledTask -TaskName mytask).Settings
AllowDemandStart: True
AllowHardTerminate