Follow

Get System errors

Name:

Get System Errors

Category:

Event Logs

Description: 

Display all events in the target’s System Event Log that have an event level of Error or Critical.

Required Software:

PowerShell

Command:

Write-Output "Examine System log for Errors on $(Computer:TARGET)"

Get-WinEvent -ComputerName $(Computer:TARGET) -LogName System -MaxEvents 3000 -ErrorAction SilentlyContinue |
Where {
$_.LevelDisplayName -eq "Error" -or
$_.LevelDisplayName -eq "Critical"} |
Format-List -property TimeCreated, LogName, ProviderName, LevelDisplayName, ID, Message

More Info/Usage:

Get-WinEvent

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk