none
date ranges RRS feed

  • Question

  • Is there a way to enter a range of dates in the schedule include or exclude tab?

    It seems now we can only enter each date by date.


    Thanks

    Thursday, September 12, 2019 11:03 PM

Answers

  • Is the runbook that needs to run at a certain time of the year dependent on any other runbook? If not, have it separate (with no dependencies).

    If it needs to run at certain times of the year, simply add those dates in the "Exceptions".


    Blog: https://thesystemcenterblog.com LinkedIn:

    • Marked as answer by msloy Friday, September 13, 2019 5:17 PM
    Friday, September 13, 2019 5:06 PM

All replies

  • Hi,

    Unfortunately you cannot set a range of dates, the only way to do this with the builtin schedules is to use the include in the exceptions tab.

    Best regards,
    Leon


    Blog: https://thesystemcenterblog.com LinkedIn:

    Thursday, September 12, 2019 11:46 PM
  • Hi,

    Days of month: Select this option and select the days of the month when this schedule allows runbooks to run. Specify the days of the month by entering the number of the day. You can use hyphens to describe ranges and commas to separate entries. For example, typing 1,3 includes the first and third day of the month. Typing 1-21 includes the first through to the twenty-first day of the month. You can combine both to create complex descriptions of the days of the month. Type all to specify all days of the month. Type last to specify the last day of the month.

    You cannot use all and last as part of a range of days. Additionally, if you typed a range of 5-31, this range works correctly for all months, including those with 28, 29, 30, and 31 days.

    https://docs.microsoft.com/en-us/system-center/orchestrator/control-runbook-activities?view=sc-orch-2019


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Friday, September 13, 2019 7:45 AM
    Moderator
  • Can i do if the days past a month? for example 

    15-30 in Sep and 1-7 in Oct.

    Thanks


    Thanks


    • Edited by msloy Friday, September 13, 2019 4:22 PM
    Friday, September 13, 2019 4:21 PM
  • You can't schedule a runbook to run to run in the past, please refer to your previous post here:
    schedule template for a runbook to run at a range of date

    If you need to run the runbook at a specific time range and date range, you would be better off using either Task Scheduler, PowerShell, Orchestrator's PowerShell module, or use Orchestrator's web service to trigger runbooks.


    Blog: https://thesystemcenterblog.com LinkedIn:

    Friday, September 13, 2019 4:29 PM
  • I did not choose a date that happened in the past. 

    For scheduled task, it is useful when I want to run a particular runbook in a date range.

    But for my case, it is part of the parent runbook that need to run at certain time of the year in an automated schedule. The rest of them run just weekly as regular schedule.

    thanks


    Thanks

    Friday, September 13, 2019 5:01 PM
  • Is the runbook that needs to run at a certain time of the year dependent on any other runbook? If not, have it separate (with no dependencies).

    If it needs to run at certain times of the year, simply add those dates in the "Exceptions".


    Blog: https://thesystemcenterblog.com LinkedIn:

    • Marked as answer by msloy Friday, September 13, 2019 5:17 PM
    Friday, September 13, 2019 5:06 PM
  • Yes, they have data dependencies.

    There are 20 days, so will have to add one by one, if that is only option, that is fine.

    Thanks


    Thanks

    Friday, September 13, 2019 5:17 PM