SecurityDetailed Tracking
Event ID 4689: A process has exited
A process has exited.
- Channel
- Security
- Logged by default
- No
- Written on
- Any host
- Volume
- Very high
- Audit subcategory
- Process Termination
- Needs a SACL
- No
To have this event
- Enable Process Termination:
auditpol /set /subcategory:"Process Termination" /success:enable /failure:enable
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| SubjectUserName | Account that ran the process |
| SubjectDomainName | Domain of the account |
| SubjectLogonId | Logon ID for correlation |
| ProcessId | Process ID that exited |
| ProcessName | Full path to the process executable |
| ExitStatus | Exit status code of the process |
Pull this event
Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.
Get-WinEvent -LogName 'Security' -FilterXPath "*[System[(EventID=4689)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
Common questions
- What does Windows event ID 4689 mean?
- A process has exited. It is written to the Windows Security log (Security).
- Is event 4689 logged by default?
- No. It must be enabled before it is recorded. It is controlled by the "Process Termination" Advanced Audit Policy subcategory (Detailed Tracking).
- Where is event 4689 recorded?
- In the Security channel on the any host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderA process has exited. Needs the "Process Termination" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.