Event ID 4698: A scheduled task was created

Event ID 4698, "A scheduled task was created", is written to the Security log when a scheduled task is registered, and it contains the task's complete XML: what it runs, when, and as which account.

Security logProcesses, services and tasksChecked 1 December 2026

What event 4698 records

The event carries the task name (its path in the Task Scheduler library) and the Task Content: the XML definition with triggers, the action (program and arguments) and the principal it runs as. Related events are 4699 (deleted), 4700 and 4701 (enabled and disabled) and 4702 (updated).

It needs "Audit Other Object Access Events" to be enabled. When it is not, the task still leaves its XML file in C:\Windows\System32\Tasks and an entry in the registry TaskCache, and the Task Scheduler operational log (event 106 for registration) may be on; Arcsentry parses all three (scheduled tasks).

What to read in the task XML

  • Actions › Exec › Command and Arguments: what the task runs. PowerShell with -WindowStyle Hidden or -enc, cmd /c, rundll32, or a path in ProgramData, Users or Temp are the usual signs.
  • Principal › UserId and RunLevel: S-1-5-18 (SYSTEM) or HighestAvailable means the task runs with full rights.
  • Triggers: a TimeTrigger with a short Repetition Interval (PT15M) is a beacon; a LogonTrigger or BootTrigger is persistence.
  • Settings › Hidden: true hides the task from the default Task Scheduler view.
  • RegistrationInfo › Author and Date: often set by the tool that created the task, and sometimes forged.

A task deleted after use still leaves its 4698 and, often, its run history in the Task Scheduler operational log.

Event 4698 fields

The fields an investigator reads first, what they mean, and where Arcsentry stores them.

FieldMeaningArcsentry field
Subject: Account Name, Logon IDWho created the task, and in which session.event data
Task NameThe task's path, for example \HFUpdateCheck or \Microsoft\Windows\…event data
Task ContentThe full XML: triggers, actions (Command and Arguments) and principal (UserId, RunLevel).event data

In Arcsentry the name and XML are readable as $taskname and $taskcontent.

What event 4698 proves, and what it does not

It shows

  • That a task with this definition was registered at this time by this account.

It does not show

  • That it ran. Check the Task Scheduler operational log (events 200 and 201) and process creation for its command.

Attacker activity it reveals

Persistence

A task that runs PowerShell, cmd or a script from a user-writable folder, as SYSTEM, every few minutes or at logon, with a name that imitates an updater. MITRE ATT&CK T1053.005

Remote execution

A task created from another host (schtasks /s) right after a network logon, run once and deleted (4699). MITRE ATT&CK T1053.005

In a real investigation: Halden Freight office intrusion

At 22:13:26 UTC on HF-WS02 the attacker registered HFUpdateCheck, running hidden PowerShell with C:\ProgramData\HFUpdate\hfupdate.ps1 every 15 minutes as SYSTEM, and the Security log recorded 4698 in the same second. The identical task had been created on HF-WS01 at 22:09:56, which tied the two hosts to the same actor.

Finding event 4698 in Arcsentry

Arcsentry parses every channel in Windows\System32\winevt\Logs, whether it comes from an Arcsentry Collector archive, a KAPE or Velociraptor collection, or a disk image. Security log records are the event type evtx_security. In Hunt, with that event type selected:

filter event_code in ("4698", "4702")
derive {task = $taskname, xml = $taskcontent}
filter xml ~= "(?i)(powershell|cmd[.]exe|wscript|cscript|mshta|rundll32|\\\\users\\\\|programdata|\\\\temp\\\\)"
select {timestamp, task, xml}
sort {timestamp}

Created or updated tasks whose definition runs a script host or a file in a user-writable folder.

Or ask in plain English, for example "show event 4698 on every host, oldest first", and Arcsentry shows the AQL it wrote before it runs. The AQL reference lists the operators used here, and the AI investigator reads the same events, citing each one by its event ID when it reports a finding.

Related event IDs

All events by investigation question: Windows security event IDs for incident response. Logon types in full: Windows logon types. The log files themselves: Windows event logs.

Frequently asked

How do I see what a scheduled task ran?

Read the Exec Command and Arguments in the task XML (4698 or the task file in C:\Windows\System32\Tasks), then look for the matching process in 4688 or Sysmon event 1 and for task run events 200 and 201 in the Task Scheduler operational log.

What does event ID 4698 mean?

A scheduled task was created. The event contains the full task XML: the trigger, the command it runs and the account it runs as.

Why is event 4698 not logged?

It requires "Audit Other Object Access Events" in the advanced audit policy. Without it, use the task files in C:\Windows\System32\Tasks, the TaskCache registry keys and the Task Scheduler operational log.

Sources

  • Microsoft Learn: 4698(S) A scheduled task was created
  • MITRE ATT&CK: T1053.005 Scheduled Task
  • Venema Labs lab case: Halden Freight office intrusion

Checked 1 December 2026 by Venema Labs against Microsoft's audit documentation and, where an example is shown, the named lab case. Field availability varies by Windows version.

Find event 4698 across every host in minutes.

Load your collections, ask what happened, and check every finding against the event behind it. Free for 7 days.

Request a trial