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
ReTweet this Tip!
Posted
Sep 28 2009, 08:00 AM
by
ps1