403 PowerShell log · Engine Lifecycle info severity high volume

PowerShell Event ID 403 — PowerShell engine stopped

PowerShell session ended. Complements 400 for session duration.

Why event 403 matters

Use with Event 400 to calculate session duration. Long-running hidden sessions warrant investigation.

How to detect it

No standalone alerting. Use with Event 400 for session timeline.

Log source
Microsoft-Windows-PowerShell/Operational
Enable PowerShell Module Logging and Script Block Logging via GPO (Administrative Templates → Windows PowerShell).
Fields to pivot on
ScriptBlockTextPathHostApplication

Detection queries

Starting points — adapt the log source, projected fields and thresholds for your environment.

Sentinel / Defender KQL
Event
| where EventLog == "Microsoft-Windows-PowerShell/Operational" and EventID == 403   // PowerShell engine stopped
// EventData holds: ScriptBlockText, Path, HostApplication
| project TimeGenerated, Computer, RenderedDescription
| sort by TimeGenerated desc
Splunk SPL
index=* sourcetype="WinEventLog:Microsoft-Windows-PowerShell/Operational" EventCode=403
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count   `# PowerShell engine stopped — add EventData fields: ScriptBlockText, Path, HostApplication`
Hunt event 403 in Sentinel/Defender →
Build a KQL query for this event in the KQL Query Builder.
Search all event IDs →
Open the interactive Windows Event ID lookup.

Related Engine Lifecycle events

400 PowerShell engine started

Frequently asked questions

What is PowerShell Event ID 403?

PowerShell engine stopped. PowerShell session ended. Complements 400 for session duration.

Which log records event 403?

Event 403 is written to the Microsoft-Windows-PowerShell/Operational channel by Microsoft-Windows-PowerShell. Enable PowerShell Module Logging and Script Block Logging via GPO (Administrative Templates → Windows PowerShell).

How do you detect activity around event 403?

No standalone alerting. Use with Event 400 for session timeline.