Skip to content

Instantly share code, notes, and snippets.

@easierbycode
Last active October 14, 2026 03:59
Show Gist options
  • Select an option

  • Save easierbycode/6585a76b6e9ac1ea6ca480eff3dd52b1 to your computer and use it in GitHub Desktop.

Select an option

Save easierbycode/6585a76b6e9ac1ea6ca480eff3dd52b1 to your computer and use it in GitHub Desktop.
diablo-log.ps1
powershell -NoExit -ExecutionPolicy Bypass -File "%~diablo-freeze-log.ps1"
Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-Resource-Exhaustion-Detector'; StartTime=(Get-Date).AddDays(-365)} |
Format-List TimeCreated, Id, Message
Get-WinEvent -FilterHashtable @{LogName='System'; Id=41,6008,4101; StartTime=(Get-Date).AddDays(-14)} |
Format-List TimeCreated, Id, ProviderName, Message
Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-WHEA-Logger'; StartTime=(Get-Date).AddDays(-14)}
Get-WinEvent -FilterHashtable @{LogName='Application'; Id=1000,1001,1002; StartTime=(Get-Date).AddDays(-14)} |
Where-Object Message -match 'Diablo' |
Format-List TimeCreated, Id, Message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment