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-WinEventRead event logs
- journalctlsystemd logs
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store