Eventful

Understanding Event Sources

Event Sources are scripts that produce events.

They are generally named @NameOfSource.ps1.

Events in PowerShell can be produced in two ways:

An event source script can return any object with events, and indicate which events to subscribe to either by addding a [Diagnostics.Tracing.EventSource(Name=’EventName’)] attribute or by adding a noteproperty called “EventName” to the return.

Event sources can be found a few places:

You can see the event sources currently available with:

Get-EventSource