Windows host logs¶
Quick pivots for native Windows event logs and PowerShell.
List available event logs¶
Recent process creation events¶
Security Event ID 4688 records process creation when process auditing is enabled.
Recent PowerShell script blocks¶
PowerShell Operational Event ID 4104 records script block content when Script Block Logging is enabled.
Get-WinEvent -FilterHashtable @{LogName='Microsoft-Windows-PowerShell/Operational'; Id=4104; StartTime=(Get-Date).AddHours(-1)}