...
Code Block | ||
---|---|---|
| ||
# add an arbitrary event $event = Add-Event -EventClass daily_closing -EventId 12345678 # wait for the event service to process the request Start-Sleep -Seconds 3 # check the list of events $events = Get-Event $events # remove the newly created event $event$events | Remove-Event # think twice before removing all events Get-Event | Remove-Event |
...