Home Dashboard Directory Help
Search

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


Status: 

Active


3
0
Sign in
to vote
Type: Suggestion
ID: 793817
Opened: 7/14/2013 5:45:14 AM
Access Restriction: Public
0
Workaround(s)
view

Description

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
Details
Sign in to post a comment.
Sign in to post a workaround.