hermes-windows-tasks.yaml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: hermes-windows-tasks
  2. repo: https://github.com/Yicheng-Mark/hermes-windows-plugins
  3. sha: 9778252252aeec293e0d234ffe24d20de9eb2fc4
  4. subdir: windows-tasks
  5. description: >-
  6. Answer "what does this machine run on its own, and did it work" on Windows: win_scheduled_tasks
  7. lists the Task Scheduler's tasks with their state (Ready, Running, Disabled), the account each
  8. runs as, its first action's command line, its triggers in words (at logon, daily, weekly, at a
  9. time, on event), its last and next run with the machine's offset, its missed runs, and what its
  10. last result code means - 0x80070002 is a program that is no longer there, 0x800710E0 a task that
  11. needed a desktop it did not have, 0x40010004 one that was stopped, 0x80040154 a COM class that is
  12. not registered. win_scheduled_task_detail takes one task and gives its triggers with start
  13. boundaries and repetition, its actions with arguments and working directory, its principal and
  14. the settings that decide whether it runs on battery or when late; a task with no triggers but
  15. MaintenanceSettings runs during automatic maintenance and the notes say so rather than leaving an
  16. empty list. Use it for why a logon task keeps failing, for finding what an uninstalled program
  17. left behind at logon, for telling a disabled task from a broken one, and for reading a task's
  18. command line before trusting it. Read-only: nothing is created, started, changed or deleted.
  19. Reads through the ScheduledTasks cmdlets rather than the store on disk, because the TaskCache
  20. registry tree and C:\Windows\System32\Tasks both answer access denied without elevation, and
  21. rather than schtasks /Query /FO CSV, which is localized and interleaves error lines for tasks
  22. whose definitions are gone. The plugin declares no Python dependencies; there is no network call
  23. and no file write. Windows only. Disclosure - the tools report task paths, command lines, working
  24. directories, account names and SIDs to the model, and those reveal what the person has installed,
  25. what starts at their logon, and the paths under C:\Users\<name>; treat the output like a Task
  26. Scheduler window opened on their machine.
  27. maintainer: Yicheng-Mark
  28. tier: community
  29. category: tools
  30. requires_hermes: ">=0.21.4"
  31. docs_url: https://github.com/Yicheng-Mark/hermes-windows-plugins/tree/main/windows-tasks
  32. version: "0.1.0"
  33. platforms:
  34. - windows
  35. capabilities:
  36. provides_tools:
  37. - win_scheduled_tasks
  38. - win_scheduled_task_detail
  39. provides_hooks: []
  40. provides_middleware: []
  41. requires_env: []