Tools / Event IDs / Event ID 4699

Event ID 4699: scheduled task deleted

What Event ID 4699 (scheduled task deleted) means, the fields to check, what is normal and what is suspicious, with PowerShell and KQL queries to find it.

Log: Security · Severity: Low · MITRE ATT&CK T1070 · Updated 2026-11-03

Event ID 4699 records a scheduled task being deleted. Attackers often create a task to run something once, then delete it, so a deletion soon after a creation (4698) is worth reconstructing.

The fields that matter

FieldWhat it tells you
Subject > Account NameWho deleted the task.
Task NameThe task path, for example \Microsoft\Windows\UpdateCheck.
Task ContentThe task XML at the time of deletion, including the command it ran.

What is normal

Software uninstallers removing their own tasks, and admins cleaning up.

When Event ID 4699 is suspicious

Common false positive: Updaters that create and remove tasks on every update.

Find Event ID 4699 with PowerShell

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4699; StartTime=(Get-Date).AddDays(-7)} -MaxEvents 50 |
  ForEach-Object {
    $d = [ordered]@{ Time = $_.TimeCreated; Computer = $_.MachineName }
    ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }
    [pscustomobject]$d
  } | Format-List

Microsoft Sentinel (KQL)

SecurityEvent
| where TimeGenerated > ago(7d) and EventID == 4699
| project TimeGenerated, Computer, Account, Activity, EventData
| order by TimeGenerated desc

Related events

FAQ

Can I see what a deleted task did?

Yes. The Task Content field in 4699 (and in the original 4698) includes the full XML, with the command line and trigger.