Name:
Get Application Errors
Category:
Event Logs
Description:
Display all events in the target computer’s Application Event Log that have an event level of Error or Critical.
Required Software:
PowerShell
Command:
Write-Output "Examine Application log for Errors on $(Computer:TARGET)"
Get-WinEvent -ComputerName $(Computer:TARGET) -LogName Application -MaxEvents 300 -ErrorAction SilentlyContinue |
Where {
$_.LevelDisplayName -eq "Error" -or
$_.LevelDisplayName -eq "Critical"} |
Format-List -property TimeCreated, LogName, ProviderName, LevelDisplayName, ID,
@{Label="Message"; Expression={($_.message).substring(0,210) }}
More Info/Usage:
Comments
0 comments
Article is closed for comments.