Get-WinEvent should have more intuitive parameters for showing Analytic and Debug logs - by Jan Egil Ring

Status : 


Sign in
to vote
ID 793817 Comments
Status Active Workarounds
Type Suggestion Repros 0
Opened 7/14/2013 5:45:14 AM
Access Restriction Public


In the current versions of Windows PowerShell where the Get-WinEvent cmdlet is available, the -Force switch can be used to show Analytic and Debug logs:

    -Force <SwitchParameter>        Gets debug and analytic logs, in addition to other event logs. The Force parameter is required to get a debug or analytic log when the value of the name parameter includes wildcard characters.

This is not very intuitive, a better approach would be to have switch parameters such as -ShowAnalyticLog and -ShowDebugLog.

A similar scenario which has been fixed in Windows PowerShell 3.0 and later is showing hidden files when using Get-ChildItem.

Previously the -Force parameter had to be used to show hidden files, while now there is a -Attributes parameter which can be used to show hidden files: 
Get-ChildItem -Attributes Hidden
Sign in to post a comment.