Skip to content
WETNav
Task SchedulerPersistence

Event ID 140: Scheduled task updated

Written when an existing scheduled task is modified. Records the task name and the account that changed it.

Channel
Microsoft-Windows-TaskScheduler/Operational
Logged by default
Varies by version
Written on
Any host
Volume
Low
Provider
Microsoft-Windows-TaskScheduler
Needs a SACL
No

To have this event

  • Task Scheduler Operational history enabled

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

TaskNameFull path of the updated task
UserNameAccount that updated the task
Have one of these events? Paste it into the decoder

Analyst notes

  • 01Attackers sometimes hijack a legitimate task by updating its action to a malicious binary rather than creating a new task, which blends in better; 140 catches that.
  • 02Correlate with Security 4702 (task updated, with XML) to see the new action; compare the new command against the task's original purpose.

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 'Microsoft-Windows-TaskScheduler/Operational' -FilterXPath "*[System[(EventID=140)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

Where it shows up

Investigations, attack signals and lateral movement techniques that rely on this event.

ATT&CK mapping

Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.

Common questions

What does Windows event ID 140 mean?
Written when an existing scheduled task is modified. Records the task name and the account that changed it. It is written to the Task Scheduler Operational log (Microsoft-Windows-TaskScheduler/Operational).
Is event 140 logged by default?
No. It must be enabled before it is recorded.
Where is event 140 recorded?
In the Microsoft-Windows-TaskScheduler/Operational channel on the any host.

Written when an existing scheduled task is modified. Records the task name and the account that changed it. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.