Reusable Schedules

1 vote

avatar

I would like to be able to create a schedule that can be assigned to multiple scripts. I'm thinking something like

  • Schedule
    • When to run
      • Every Day at Midnight
    • What to run
      • Script 1
      • script 2

Or something like that.

All Comments (2)

avatar

@jomalin88 I like this idea. It seems a bit like a multi-select for the script. From a schedules.ps1 perspective, we could just make the script an array.

New-PSUSchedule -CRON "* * * * *" -Script @("Script1.ps1", "Script2.ps1")

Adam Driscoll
PowerShell Expert and Developer at Devolutions

avatar

Would be cool to have triggers set up the same way. We can assign the same trigger script to multiple automation scripts, but it would be nice to have a multi select in the trigger menu for selecting the scripts it should trigger on.