Windows Event ID 4699: A scheduled task was deleted
- Applicable version
- Windows Server 2016 and later; Windows 10 and later
- Last reviewed
- 2026-07-21
Quick summary
Event ID 4699 records deletion of a scheduled task.
Technical Metadata
| Event ID | 4699 |
|---|---|
| Provider | Microsoft-Windows-Security-Auditing |
| Channel | Security |
| Level | Information |
| Audit keyword | Audit Success |
| MITRE ATT&CK | TA0005 Defense Evasion / T1070.009 Indicator Removal: Clear Persistence |
| Key fields to watch | Task Name, Subject, Task Content |
Trigger Scenarios
It is generated when Task Scheduler auditing records task removal.
Key Fields
Task Name
The deleted task path; preserve it for comparison with known baselines.
Subject
The account deleting the task.
Task Content
Where retained, identifies the removed command and trigger.
Threat Hunting Queries
SecurityEvent
| where EventID == 4699
| project TimeGenerated, Computer, Account, EventData
| order by TimeGenerated desc- Data source
- Microsoft Sentinel SecurityEvent table
- Assumptions
- The Windows Security Events connector populates SecurityEvent. Apply the event-specific field and correlation guidance on this page after retrieving the base events.
index=wineventlog source="WinEventLog:Security" EventCode=4699
| table _time, host, user, EventCode, Message- Data source
- Splunk Windows Security event data
- Assumptions
- Index, source, and field aliases vary by Splunk deployment and Windows add-on version. Map provider fields from the raw event before adding event-specific filtering or aggregation.
dataset = microsoft_windows_raw
| filter edr_event_id = 4699- Data source
- Cortex XDR microsoft_windows_raw
- Assumptions
- The Windows Security channel is ingested into Cortex XDR. Inspect raw provider fields because parsed names vary by collection path.
title: Windows Security Event ID 4699
status: experimental
logsource:
product: windows
service: security
detection:
selection:
EventID: 4699
condition: selection
falsepositives:
- Legitimate administrative or system activity
level: informational- Data source
- Sigma Windows Security log source
- Assumptions
- This rule retrieves the event and is not a standalone malicious-behavior detection. Add the field conditions and correlations documented on this page in the destination SIEM.
MITRE ATT&CK Mapping
- T1070.009Indicator Removal: Clear Persistence
Detection Notes
T1070.009 Clear Persistence is indicated when TaskName deleted by 4699 matches a suspicious task previously created in 4698 or updated in 4702 and its TaskContent referenced powershell.exe or a C:\Users\ path. Use an environment-defined correlation window based on task retention, preserve the earlier XML, and distinguish attacker cleanup from approved software removal.
Common False Positives
- Software updaters remove obsolete tasks.
- Administrators clean up maintenance tasks.
Related Events
Sample Log
Task Name: \Microsoft\Windows\Update\CacheRefresh
Subject: CORP\admin.opsFrequently Asked Questions
What does Windows Event ID 4699 mean?
Event ID 4699 records deletion of a scheduled task and identifies the actor and task name; newer event versions can include task XML content.
Are scheduled-task deletions malicious?
No. Software upgrades, uninstallers, Windows maintenance, and administrators routinely remove tasks; risk depends on who deleted what and whether the task was recently used for suspicious execution.
How can Event ID 4699 show clear-persistence behavior?
Correlate TaskName with 4698 creation and 4702 modification, preserve the earlier task XML, and determine whether an actor removed its own execution mechanism after use.
Sources
- 4699: Microsoft Windows security auditing event reference
Microsoft · vendor
- Indicator Removal: Clear Persistence (T1070.009)
MITRE ATT&CK · attack
- XDR Collector datasets
Palo Alto Networks · vendor
- Sigma Rules Specification
SigmaHQ · detection rule