Versions Compared

Key

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

...

-Timezone <TimeZoneInfo>
Specifies the timezone to which dates should be converted in the history daily plan information.
A timezone can e.g. be specified like this:

Get-JSTaskHistory JSDailyPlan -Timezone (Get-Timezone -Id 'GMT Standard Time')

All dates in JobScheduler are UTC and can be converted e.g. to the local time zone like this:

Get-JSTaskHistory JSDailyPlan -Timezone (Get-Timezone)

Default: Dates are returned in UTC.

...

-------------------------- EXAMPLE 2 --------------------------

PS > $items = Get-JobSchedulerDailyPlan -Timezone (Get-Timezone)

Returns today's daily plan for any jobs with dates being converted to the local timezone.

-------------------------- EXAMPLE 3 --------------------------

PS > $items = Get-JobSchedulerDailyPlan -Timezone (Get-Timezone -Id 'GMT Standard Time')

Returns today's daily plan for any jobs with dates being converted to the GMT timezone.

-------------------------- EXAMPLE 4 --------------------------

PS > $items = Get-JobSchedulerDailyPlan -DateTo (Get-Date -Hour 0 -Minute 0 -Second 0).AddDays(34).ToUniversalTime()

Returns the daily plan items for the next 3 days until modnight.

-------------------------- EXAMPLE 3 5 --------------------------

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

Returns the today's daily plan items that failed or started later than expected.

-------------------------- EXAMPLE 4 6 --------------------------

...

-------------------------- EXAMPLE 5 7 --------------------------

...