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

ScheduledTask: Delay parameter applicability #345

Open
SDedik opened this issue Jul 20, 2020 · 1 comment
Open

ScheduledTask: Delay parameter applicability #345

SDedik opened this issue Jul 20, 2020 · 1 comment
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.

Comments

@SDedik
Copy link

SDedik commented Jul 20, 2020

Details of the scenario you tried and the problem that is occurring

According to documentation:

Delay | Write | String | Specifies a delay to the start of the trigger. The delay is a static delay before the task is executed. Can only be used in combination with ScheduleType OnEvent.

Is there a specific reason why Delay is only applicable to OnEvent ScheduleType?
Because while creating task in GUI, this parameter is applicable to every ScheduleType except OnIdle (where it is disabled, for obvious reasons) and On a schedule (where it is replaced by RandomDelay)

In my experience creating tasks with ScheduleType = AtStartup and AtLogon is a very common scenario, but setting delay for such tasks is currently not supported by the dsc resource.

Suggested solution to the issue

Delay parameter has to be applicable to ScheduleTypes AtStartup, AtLogon and other types to match behavior of GUI Task Scheduler editor.

@SDedik SDedik changed the title ScheduledTask: Delay parameter application ScheduledTask: Delay parameter applicability Jul 20, 2020
@PlagueHO PlagueHO added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. labels Dec 3, 2020
@PlagueHO
Copy link
Member

PlagueHO commented Dec 3, 2020

Hi @SDedik - sorry about the delay in looking at this. I've unfortunately not had time to keep on top of these.

It is possible the reason this wasn't implemented was earlier versions of the PowerShell cmdlets/objects may not have supported it.

But if it supported by the cmdlets then we can implement it - just need a PR. I will try and get to it if no one else does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

2 participants