When it is written
Windows writes 4702 on the computer where a scheduled task is updated or changed, every time, if Audit Other Object Access Events is on for Success. Task New Content holds the complete new XML definition of the task in the Task Scheduler schema: what it runs (Actions), when (Triggers), as whom (Principals) and its settings.
The event holds only the new definition. To see what changed, compare it with the previous definition of the same Task Name on the same computer in your collector: the 4698 that created the task or an earlier 4702. Creating a task writes 4698, deleting it 4699, and enabling or disabling it 4700 or 4701, all in the same subcategory.
How to turn it on
Advanced audit policy subcategory Audit Other Object Access Events, Success. Set it in a Group Policy object linked to the computers that write the event:
Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > Object Access > Audit Other Object Access Events| Computer | Audit | Note |
|---|---|---|
| Domain controllers | Success and Failure | Recommended in both baselines. Success mainly for the scheduled task events, Failure for the events about a possible ICMP denial of service attack. |
| Member servers | Success and Failure | Recommended in both baselines. Success mainly for the scheduled task events, Failure for the events about a possible ICMP denial of service attack. |
| Workstations | Success and Failure | Recommended in both baselines. Success mainly for the scheduled task events, Failure for the events about a possible ICMP denial of service attack. |
auditpol /get /subcategory:"Other Object Access Events"auditpol /set /subcategory:"Other Object Access Events" /success:enableauditpol /get /subcategory:"{0CCE9227-69AE-11D9-BED3-505054503030}"Run the commands in an elevated prompt on a computer that writes the event. Subcategory settings take effect only when the security option Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings is enabled (the default), and a Group Policy object that sets advanced audit policy replaces local changes at its next refresh. Microsoft's advanced audit policy reference
Fields
In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.
| Field | What it holds | Since |
|---|---|---|
Security IDSubjectUserSidSubject | SID of the account that updated the task. Event Viewer shows it resolved to an account name when it can. S-1-5-18 when a process running as Local System updated it. | v0 |
Account NameSubjectUserNameSubject | Name of that account. For Local System it is the computer account, a name that ends with $. | v0 |
Account DomainSubjectDomainNameSubject | Domain of the updating account, usually as a NetBIOS name, the computer name for a local account, or NT AUTHORITY for well-known principals. | v0 |
Logon IDSubjectLogonIdSubject | Hexadecimal ID of the updating account's logon session. It matches the Logon ID of the 4624 event on the same computer, whose logon type and source address show how and from where the task was changed. | v0 |
Task NameTaskNameTask Information | Full path of the task in the Task Scheduler Library, as \folder\name. A name with no folder is in the root. | v0 |
Task New ContentTaskContentNewTask Information | Complete new XML definition of the task (shown as Task New Content), with registration information, triggers, principals (UserId, LogonType, RunLevel), settings and actions (Exec with Command and Arguments, or a COM handler). The previous definition is not in the event. | v0 |
ProcessCreationTimeClientProcessStartKeyOther Information | Start key of the client process that updated the task, shown by Event Viewer as ProcessCreationTime although it is not a time. A start key identifies one run of a process and is not reused (Microsoft describes start keys as unique across boot sessions). Not documented for this event. Version 1. | v1 |
ClientProcessIdOther Information | ID of that client process, in decimal. Not documented for this event. Version 1. | v1 |
ParentProcessIdOther Information | ID of the parent of that client process, in decimal. Not documented for this event. Version 1. | v1 |
FQDNRpcCallClientLocalityOther Information | A number whose name matches the RPC runtime's client locality list (0 invalid, 1 local, 2 remote, 3 unknown). Microsoft does not document it for this event; its sample shows 0. Event Viewer's message shows this value on the line labelled FQDN. Version 1. | v1 |
FQDN | A computer name. Microsoft's sample shows a short host name and does not say whether it is the client's or the local computer's. Not shown in Event Viewer's message. Version 1. | v1 |
Event versions
The template has two versions. Version 0 has six fields. Microsoft's event page notes that Windows 10 version 1903 and later add five fields (version 1): ClientProcessStartKey, ClientProcessId, ParentProcessId, RpcCallClientLocality and FQDN. Microsoft does not describe them. In the message Event Viewer shows (taken from the Windows template), the start key is labelled ProcessCreationTime, the line labelled FQDN displays RpcCallClientLocality, and the FQDN field itself appears only in the event XML.
- Version 0: 6 fields
- Version 1: 11 fields, adds
ClientProcessStartKey,ClientProcessId,ParentProcessId,RpcCallClientLocality,FQDN
Values to know
Account Name SubjectUserName
| Value | Meaning | Signal |
|---|---|---|
Ends with $ | The computer account, for a task updated by a process running as Local SystemWindows and installed software maintaining their own tasks. | Expected |
Any other account | A named account changed the taskCheck the logon (4624) of the session and what changed compared with the previous definition. | Worth knowing |
Task Name TaskName
| Value | Meaning | Signal |
|---|---|---|
\Name (no folder) | A task in the root of the Task Scheduler LibraryMicrosoft notes that tasks created by hand or by malware are often placed in the root. | Attack signal |
\Microsoft\Windows\... | The folder of Windows' own tasksExpected from Windows itself. A change of its action by a named account is not. | Expected |
Task New Content TaskContentNew
| Value | Meaning | Signal |
|---|---|---|
<LogonType>Password</LogonType> | The task now stores the password of its run-as accountMicrosoft recommends an alert. The password is kept by Windows and can be recovered by an administrator of the computer. | Attack signal |
<UserId>S-1-5-18</UserId> | The task runs as Local SystemOn a domain controller such a task has the reach of a service. | Worth knowing |
<Hidden>true</Hidden> | The task is not shown in the Task Scheduler interface by default | Worth knowing |
Volume and noise
Microsoft rates Audit Other Object Access Events Low. Most 4702 events come from Windows and installed software updating their own tasks, usually under Local System, so the subject is the computer account (a name ending with $). Administrators and management tools that edit tasks add the rest. Microsoft gives the event a potential criticality of Low in its list of Active Directory events to monitor.
Keeping it manageable
- Collect 4702 wherever you collect 4698: they share the subcategory, and changing the action of an existing task never writes 4698.
- Microsoft recommends an alert when the new XML contains
<LogonType>Password</LogonType>, and watching updated tasks in the root of the Task Scheduler Library (TaskNamewith no folder). - For review, compare
Command,ArgumentsandUserIdin the new XML with the task's previous definition. A changed program or run-as account on a task in a Windows folder, made by a named account, deserves a look. - Keep updates by computer accounts collected even if you leave them out of alerting: they are the history you compare against.
- Make sure the collector keeps
TaskContentNewwhole: the command and the run-as account sit deep in the XML.
Sample event
Version 1, with made-up values.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" />
<EventID>4702</EventID>
<Version>1</Version>
<Level>0</Level>
<Task>12804</Task>
<Opcode>0</Opcode>
<Keywords>0x8020000000000000</Keywords>
<TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
<EventRecordID>1048576</EventRecordID>
<Correlation />
<Execution ProcessID="712" ThreadID="2408" />
<Channel>Security</Channel>
<Computer>DC01.corp.example.com</Computer>
<Security />
</System>
<EventData>
<Data Name="SubjectUserSid">S-1-5-21-1004336348-1177238915-682003330-1104</Data>
<Data Name="SubjectUserName">alice</Data>
<Data Name="SubjectDomainName">CORP</Data>
<Data Name="SubjectLogonId">0x5d3a41</Data>
<Data Name="TaskName">\Example\NightlyReport</Data>
<Data Name="TaskContentNew"><?xml version="1.0" encoding="UTF-16"?> <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <RegistrationInfo> <Date>2026-11-18T09:30:11.8231044</Date> <Author>CORP\alice</Author> <URI>\Example\NightlyReport</URI> </RegistrationInfo> <Triggers> <CalendarTrigger> <StartBoundary>2026-11-19T02:00:00</StartBoundary> <ScheduleByWeek> <WeeksInterval>1</WeeksInterval> <DaysOfWeek> <Monday /> </DaysOfWeek> </ScheduleByWeek> </CalendarTrigger> </Triggers> <Principals> <Principal id="Author"> <UserId>S-1-5-18</UserId> <RunLevel>HighestAvailable</RunLevel> </Principal> </Principals> <Settings> <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy> <Enabled>true</Enabled> <Hidden>false</Hidden> <ExecutionTimeLimit>PT1H</ExecutionTimeLimit> </Settings> <Actions Context="Author"> <Exec> <Command>C:\Program Files\Example\report.exe</Command> <Arguments>/weekly</Arguments> </Exec> </Actions> </Task></Data>
<Data Name="ClientProcessStartKey">2814749767106568</Data>
<Data Name="ClientProcessId">5872</Data>
<Data Name="ParentProcessId">4380</Data>
<Data Name="RpcCallClientLocality">0</Data>
<Data Name="FQDN">DC01</Data>
</EventData>
</Event>Attacks this event reveals
No detection rule or detection logic in our library reads this event yet. It is documented here because it sits next to the events they read: it explains them, follows from them or is the trace a defender looks for around them (see Related events).
Frequently asked questions
Is event 4698 written when an existing task is changed?
No. A change to an existing scheduled task writes 4702, with the new definition in Task New Content. A task whose action is replaced keeps its name, so only 4702 shows the change.
How do I see what changed in a scheduled task?
Event 4702 holds only the new XML. Compare it with the previous definition of the same Task Name on the same computer, from the 4698 that created the task or an earlier 4702 in your collector.
Which 4702 events deserve an alert?
Microsoft recommends an alert when the new XML contains LogonType Password, because the task then stores the password of its run-as account, and watching updated tasks in the root of the Task Scheduler Library. A changed command or run-as account on an existing task, made by a named account, is also worth a review.
What changed in event 4702 in Windows 10 version 1903?
Microsoft notes that version 1903 and later add five fields to the event (version 1) about the client that changed the task, including a process start key, process IDs, an RPC client locality value and a computer name. Microsoft does not describe them further.
References
- 4702(S): A scheduled task was updated (Microsoft)
- Audit Other Object Access Events (Microsoft)
- MS-TSCH: XML Task Definition Format (Microsoft)
- Hidden (settingsType) element of the Task Scheduler schema (Microsoft)
- RpcCallClientLocality enumeration (Microsoft)
- PsGetProcessStartKey function, process start keys (Microsoft)
- Appendix L: Events to Monitor (Microsoft)