Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

-RelativeDateFrom <String>
Specifies a relative date starting from which daily plan items should be returned, e.g.

* -1d, -2d: one day ago, two days ago
* +1d, +2d: one day later, two days later
* -1w, -2w: one week ago, two weeks ago
* +1w, +2w: one week later, two weeks later
* -1M, -2M: one month ago, two months ago
* +1M, +2M: one month later, two months later
* -1y, -2y: one year ago, two years ago
* +1y, +2y: one year later, two years later

Optionally a timezone offset can be specified, e.g. -1d+02:00, as otherwise a UTC date is assumed.
This parameter takes precedence over the -DateFrom parameter.

...

-RelativeDateTo <String>
Specifies a relative date until which daily plan items should be returned, e.g.

* -1d, -2d: one day ago, two days ago
* +1d, +2d: one day later, two days later
* -1w, -2w: one week ago, two weeks ago
* +1w, +2w: one week later, two weeks later
* -1M, -2M: one month ago, two months ago
* +1M, +2M: one month later, two months later
* -1y, -2y: one year ago, two years ago
* +1y, +2y: one year later, two years later

Optionally a timezone offset can be specified, e.g. -1d+02:00, as otherwise a UTC date is assumed.
This parameter takes precedence over the -DateTo parameter.

...

PS > $items = Get-JobSchedulerDailyPlan -RelativeDateFrom -7d

Returns the daily plan for the last seven days. The daily plan is reported starting from midnight UTC.

-------------------------- EXAMPLE 8 --------------------------

PS > $items = Get-JobSchedulerDailyPlan -RelativeDateFrom -7d+01:00

Returns the daily plan for the last seven days. The daily plan is reported starting from 1 hour after midnight UTC.

-------------------------- EXAMPLE 9 --------------------------

PS > $items = Get-JobSchedulerDailyPlan -RelativeDateFrom -7d+TZ

Returns the daily plan for the last seven days. The daily plan is reported starting from midnight in the same timezone that is used with the -Timezone parameter.

-------------------------- EXAMPLE 10 --------------------------

PS > $items = Get-JobSchedulerDailyPlan -RelativeDateFrom -1w

Returns the daily plan for the last week.

-------------------------- EXAMPLE 11 --------------------------

PS > $items = Get-JobSchedulerDailyPlan -Failed -Late

Returns today's daily plan items for jobs that failed or are late, i.e. that did not start at the expected point in time.

-------------------------- EXAMPLE 8 12 --------------------------

...

-------------------------- EXAMPLE 9 13 --------------------------

...