Windows Event ID 4698 is generated by the Microsoft-Windows-Security-Auditing provider when the Windows Task Scheduler service creates a new scheduled task. This event is part of the security auditing framework introduced to provide comprehensive logging of system changes that could impact security posture.
The event contains rich metadata including the security identifier (SID) of the user who created the task, the task name, task path, and the complete task definition in XML format. This XML definition includes execution parameters, triggers, actions, and security context information. The event timestamp reflects when the task was registered with the Task Scheduler service, not when it will execute.
From a security perspective, this event is invaluable for detecting unauthorized task creation, which is a common persistence technique used by malware families and advanced persistent threats. Legitimate administrative tasks and system maintenance tasks also generate this event, making baseline understanding crucial for effective monitoring. The event helps organizations maintain audit trails for compliance frameworks like SOX, HIPAA, and PCI-DSS that require tracking of system configuration changes.
In Windows Server 2025 and Windows 11 24H2, Microsoft enhanced the event to include additional context about the creation method (GUI, PowerShell, schtasks.exe) and improved XML formatting for better parsing by security information and event management (SIEM) systems.