Finding Events Supported by an Event Provider

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!


Posted Sep 28 2009, 08:00 AM by ps1
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.