Tools / Event IDs / Event ID 4702

Event ID 4702: scheduled task updated

What Event ID 4702 (scheduled task updated) 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 T1053.005 · Updated 2026-11-03

Event ID 4702 records a change to an existing scheduled task. Rather than creating a new task, an attacker can quietly change the action of a legitimate one, and 4702 is where that shows.

The fields that matter

FieldWhat it tells you
Subject > Account NameWho changed the task.
Task NameWhich task.
Task New ContentThe updated XML: check the Exec command and arguments.

What is normal

Updaters refreshing their own tasks, often daily.

When Event ID 4702 is suspicious

Common false positive: Browser, Office and driver updaters change their tasks frequently. Compare the new command with the vendor's usual path.

Find Event ID 4702 with PowerShell

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4702; 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 == 4702
| project TimeGenerated, Computer, Account, Activity, EventData
| order by TimeGenerated desc

Related events

FAQ

Does 4702 show what changed?

It shows the new task XML. Compare it with the 4698 for the same task, or with the same task on a clean machine.