主题: scheduled-tasks
-
使用 ScheduledTasks 模块构建计划任务:操作、触发器、运行主体和结果代码
New-ScheduledTaskAction、-Trigger 和 -Principal 组成任务,再用 Register-ScheduledTask 注册;以 NT AUTHORITY\SYSTEM 身份运行不需要保存密码,Get-ScheduledTaskInfo 与文档中的任务计划程序结果常量则能告诉智能体,上次运行是否确实成功。
-
Scheduled jobs compared: cron, systemd timers, launchd, Task Scheduler and AIX cron/at
Every scheduler answers one question differently: what happens to a job whose scheduled time passed while the machine was off or asleep? Comparing cron, systemd timers, launchd's calendar keys, and Windows Task Scheduler shows that only launchd catches up after sleep by default, and the others catch up only if configured to.
机器可读: JSON