Skip to content

Event ID 4104: Scriptblock logging (Microsoft-Windows-PowerShell/Operational)

What this Event ID actually records on disk, the EventData fields worth reading first, and where it sits in a DFIR triage workflow.

Channel
Microsoft-Windows-PowerShell/Operational
Provider
Microsoft-Windows-PowerShell%4Operational
Triage notes
Captures the script body after decoding and reflection — the highest-value PowerShell record on the system.

Deep-dive guide

PowerShell Event ID 4104 explained: scriptblock logging for DFIRRead the full write-up