Versions Compared

Key

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

...

-------------------------- EXAMPLE 1 --------------------------

C:\PS>Add-Event JobSchedulerEvent -EventClass daily_closing -EventId 12345678

...

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

C:\PS>Add-Event JobSchedulerEvent -EventClass daily_closing -EventId 12345678 -AllowedExitCodes 1..4

...

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

C:\PS>Add-Event JobSchedulerEvent -EventClass daily_closing -EventId 12345678 -ExpirationPeriod 04:00

...

-------------------------- EXAMPLE 5 --------------------------

C:\PS>Add-Event JobSchedulerEvent -EventClass daily_closing -EventId 12345678 -ExpirationDate (Get-Date).AddDays(2)

...

-------------------------- EXAMPLE 6 --------------------------

C:\PS>Add-Event JobSchedulerEvent -EventClass daily_closing -EventId 12345678 -Parameters @
{'name1'='value1'; 'name2'='value2
'}

Creates an event with two additional parameters from a hashtable.