(Get-WinEvent -ListProvider x).Events doesn't always return the defined events - by SLDR

Status : 


Sign in
to vote
ID 783682 Comments
Status Active Workarounds
Type Bug Repros 0
Opened 4/15/2013 7:45:06 AM
Access Restriction Public


When you run:
(Get-WinEvent -ListProvider Microsoft-Windows-PowerShell).Events

You get the defined events.

When you run:
(Get-WinEvent -ListProvider PowerShell).Events

You don't get any defined events. Yet if you go to event viewer and look at "Windows Powershell" you see event occurences so they are defined somewhere so that event viewer can display the event occurences from the defined event. I consider the above command not listing the defined events a bug.

Enviroment: Win 7 PowerShell 3.0

What I really want to work on Win 2008 R2 (PowerShell 2.0) with SQL Server 2008 R2 is:
(Get-WinEvent -ListProvider MSSQLSERVER).Events

Thanks for any help,
(Stephen L. De Rudder)
Sign in to post a comment.