Home Dashboard Directory Help
Search

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


Status: 

Active


2
0
Sign in
to vote
Type: Bug
ID: 783682
Opened: 4/15/2013 7:45:06 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

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

Note:
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,
SLDR
(Stephen L. De Rudder)
Details
Sign in to post a comment.
Sign in to post a workaround.