Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the StartWhenAvailable flag for Inline Scheduled Tasks #17

Closed
Kevinf63 opened this issue Nov 30, 2021 · 2 comments
Closed

Setting the StartWhenAvailable flag for Inline Scheduled Tasks #17

Kevinf63 opened this issue Nov 30, 2021 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Kevinf63
Copy link
Contributor

Per the title, not sure how this can be done without using XML or inline XML, but I was wondering if the inline options UI/UX can be extended to include the StartWhenAvailable boolean flag; this "Indicates that Task Scheduler can start the task at any time after its scheduled time has passed", which is particularly useful for looping repetitive tasks.

XML Scheduled Task Parameter:

<Settings>
  <StartWhenAvailable>false</StartWhenAvailable>
</Settings>

Documentation:
https://docs.microsoft.com/en-us/powershell/module/scheduledtasks/new-scheduledtasksettingsset?view=windowsserver2019-ps

@deadlydog deadlydog added the enhancement New feature or request label Dec 16, 2021
@deadlydog
Copy link
Owner

Yup, since there's a ScheduledTaskSettingsSet parameter for it (as per the link you provided), it should be possible to add that functionality. It would essentially be the same code as the Enabled inline option.

I don't foresee having time to get to this in the near future, but PRs are welcome :)

@deadlydog
Copy link
Owner

This is now available in v2.1.0 of the extension. Thanks @Kevinf63 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants