Finding Events Supported by an Event Provider

by Sep 28, 2009

In PowerShell v.2, Get-WinEvent provides access to events written to the numerous Windows event logs. In addition, you can also examine event providers and find out which events they can actually generate:

Get-WinEvent -listProvider *PowerShell* |
Foreach-Object { $_.Events } |
Format-Table id, description

Twitter This Tip! ReTweet this Tip!