Microsoft

System Center Configuration Manager Feedback

Suggestion box powered by UserVoice

How can we improve Configuration Manager?

CMPivot Eventlog is using Get-Eventlog instead of Get-WinEvent

The current 1806 implementation of CMPivot is using the cmdlet GEt-Eventlog read event log entries. The PowerShell command is:
$events = get-eventlog -LogName $logName -Newest 50 -ErrorAction Stop

This limits the logs to be read from to logs like Application, Security, System and only some others. On my client (Get-EventLog -List).Count has only 12 logs.

The better command would be Get-WinEvent. Where I can access all logs. The command (Get-WinEvent -ListLog *).Count returns 463 logs.

3 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Frank shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base