wevtutil
SafeEvent logs from the CLI
wevtutil qe System /c:20 /rd:true /f:text
Queries (qe) and exports (epl) event logs — extract incident windows or preserve evtx evidence.
Examples
wevtutil epl System C:\temp\sys.evtxExport System log as evtx
Syntax
wevtutil [qe log] [el] [epl log file]
Before you run it
Avoid 'cl' — it destroys evidence.
Used when you see
Windows Update keeps failing
4
See the whole flow →If it fails again, pull the error from the event logs
Blue screens (BSOD)
1
See the whole flow →Get the stop code and time from event logsCheck System log events 41 and 1001.
Related commands
- Get-WinEventQuery event logs (modern)
- journalctlsystemd logs
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store