Skip to content

Scheduled Tasks

Evidence: Scheduled Tasks
Description: Enumerate Scheduled Tasks
Category: System
Platform: windows
Short Name: schldpr
Is Parsed: Yes
Sent to Investigation Hub: Yes
Collect File(s): Yes

Windows Task Scheduler allows programs to be executed at specific times or in response to system events. Scheduled tasks are a common persistence mechanism used by both legitimate software and malware.

Tasks can be configured to run at logon, on schedule, or when specific events occur. The Task Scheduler maintains both legacy .job files (Windows XP) and modern XML-based tasks (Windows Vista+).

This collector gathers structured data about scheduled tasks.

FieldDescriptionExample
NameTask name or path\Microsoft\Windows\MyTask
EnabledWhether task is enabledTRUE
StatusTask statusReady
CommandLineFull command lineC:\Windows\System32\cmd.exe /c script.bat
TriggersTrigger types (comma-separated)0,1,2
LastRunTimeLast execution time2023-10-15T14:30:00
AuthorTask authorDOMAIN\Administrator
CreationTimeTask creation time2023-10-01T10:00:00
AutorunsScheduledTasksRowIDForeign key to task entry1

This collector:

  • Collects task files from:
    • Windows\System32\Tasks (Windows Vista+)
    • Windows\Tasks\*.job (Windows XP)
  • Uses Task Scheduler COM API to enumerate tasks:
    • ITaskScheduler interface for legacy tasks (v1)
    • ITaskService interface for modern tasks (v2)
  • Extracts task actions (EXEC and COM_HANDLER types)
  • Parses command lines and arguments
  • Resolves CLSID references for COM handler tasks
  • Collects file information for all executables

Scheduled task enumeration is critical for detecting persistence and automated malicious activity. Investigators use this data to identify malicious scheduled tasks, detect persistence mechanisms, track automated attack execution, identify lateral movement tools, detect data exfiltration schedules, verify legitimate administrative tasks, and correlate task execution with system events.