Lists all of the tasks in the Windows task scheduler.

Platform support

Please be aware that some queries can only be run against certain platforms. Below is a list of the supported platforms that this query supports. Zercurity will automatically pause queries from running if errors are detected. Running a query against an unsupported platform will result in the following error: no such table: scheduled_tasks

  • Windows

Table schema

Name Type Description
name TEXT Name of the scheduled task
action TEXT Actions executed by the scheduled task
path TEXT Path to the executable to be run
enabled INTEGER Whether or not the scheduled task is enabled
state TEXT State of the scheduled task
hidden INTEGER Whether or not the task is visible in the UI
last_run_time INTEGER Timestamp the task last ran
next_run_time INTEGER Timestamp the task is scheduled to run next
last_run_message TEXT Exit status message of the last task run
last_run_code TEXT Exit status code of the last task run

Query examples

select * from scheduled_tasks
select * from scheduled_tasks where hidden=1 and enabled=1