I need to count how many error events are logged under "Application" and "System" of a remote computer using powershell. I have started this but not got to far.
Get-EventLog -computername COMPUTER -Logname Application -EntryType Error | Measure-Object -Sum Entrytype | Format-Table Count
This is very rough right now and the two problems so far is that the above command only does ONE type of log at a time, and the format of the table isnt very useful.
Id like to have extra headers so it outputs Computername, Entrytype and Count.
How can I get powershell to list both events and have extra headers with the table?