dsccommunity / ComputerManagementDsc

DSC resources for for configuration of a Windows computer. These DSC resources allow you to perform computer management tasks, such as renaming the computer, joining a domain and scheduling tasks as well as configuring items such as virtual memory, event logs, time zones and power settings.
https://dsccommunity.org
MIT License
303 stars 83 forks source link

Add "Monthly" Trigger to ScheduledTask #419

Open ephos opened 1 year ago

ephos commented 1 year ago

Request: ScheduledTask does not allow the ability to do a monthly trigger, with this functionality missing it makes it difficult to use DSC to create a task that runs on a specific day each month. This resource lacks feature parity with it's PowerShell/GUI alternatives.

Use case example: Run a task on the 3rd Monday of each month.

Additional Notes: This can be worked around somewhat by the suggestions in #173 but having to manage doing this through logic external to the resource seems counter productive to using something declarative like DSC.

johlju commented 10 months ago

Can't this be accomplished with the WeeksInterval parameter and have the ScheduleType set to Weekly?

How would you otherwise set a monthly trigger using the PowerShell commands?