Skip to content

Create an automation task ​

What this is ​

Create Automation Task builds a reusable single-step or multi-step workflow: scripts, services, alerts, webhooks, file/registry work, connectivity checks, and more — plus triggers, result monitoring, error handling, schedule, and self-healing. For OS updates, use patch management policies instead of an automation patch module.

Who can use it ​

Users who can create or edit automation tasks under Automation.

How to open it ​

  1. In the left side menu, click Automation.
  2. Click the Tasks tab.
  3. Open the Automation Tasks subtab.
  4. Click Create Automation Task (or Use Template, then pick a template).

To edit later: on the task card, click Edit (modal title becomes Edit Automation Task).

Create Automation Task button on Automation Tasks

Do the task ​

Work through the modal tabs, then save with Create Task (or Update Task when editing). Use Cancel to discard.

Modal tabs (order):

  1. Basic Info
  2. Configuration (when Task Type is Single Step) or Steps (when Multi Step)
  3. Trigger
  4. Result Monitoring
  5. Error Handling
  6. Schedule
  7. Self-Healing

Footer buttons: Cancel, Create Task / Update Task.

1. Basic Info ​

  1. Enter Task Name (required).
  2. Optionally fill Description and Category (for example Maintenance, Security, Monitoring).
  3. Set Task Type:
    • Single Step — one action (uses the Configuration tab)
    • Multi Step — ordered actions with dependencies (uses the Steps tab)
  4. Under OS Requirements / OS Exclusions, check the OS types this task may or must not run on. Leave requirements empty to allow all.
  5. Under Device Type Requirements / Device Type Exclusions, optionally narrow by device type (more granular than OS).
  6. Optionally set Agent response timeout (seconds).
  7. Set Version (defaults to 1.0.0).
  8. Leave Active on unless you want the task saved but inactive.

Basic Info tab with Task Name, Task Type, OS and device filters

2a. Configuration (single-step) ​

  1. Open Configuration.
  2. Choose Module, then fill the fields for that module.
ModuleKey fields
ScriptScript (searchable list)
ServiceService Action (Start / Stop / Restart / Check Status); Service Name
AlertAlert Severity (Info / Warning / Error / Critical); Alert Message
PSA TicketPSA Configuration (if more than one); Ticket Title; Ticket Description; Priority
WebhookWebhook URL; HTTP Method; Custom Headers (JSON); Payload (JSON); Secret Token (Optional); Timeout (seconds)
File OperationFile Operation (Copy / Move / Delete / Create / Read); Source Path / Destination Path / Path to Delete as needed; Create as Directory; File Content; Overwrite if exists; Recursive (delete folder contents)
Registry EditRegistry Operation (Read / Write / Delete); Registry Key Path; Value Name; Value Data; Value Type (Windows only)
Restart DeviceAction (Restart / Reboot / Shutdown); Delay (seconds); Message to Display; Force restart (even if users are logged in)
Device connectivityCreate alert if device is offline; Fail step if offline...; Alert severity (when alerting); Alert message template
Developer AppsDeveloper Apps Action (Scan / Apply updates); Target path; Ecosystem (npm, yarn, pnpm, composer, pip, nuget, rubygems, maven, gradle)

Many text fields accept FlexVars (for example ${FLEX.VAR_NAME}).

Configuration tab with Module selector and module fields

2b. Steps (multi-step) ​

  1. Open Steps.
  2. Click Add Step for each action.
  3. Configure the step module the same way as Configuration.
  4. For steps after the first, set Depends On Step (or leave None (runs in order)).
  5. Set On Failure: Stop (default), Continue, or Rollback.
  6. When a step depends on another, optionally enable Conditional Execution (Combo Scripts) so the step runs only if a prior result matches (for example exit code).

Steps tab with Add Step, Depends On Step, and On Failure

3. Trigger ​

  1. Open Trigger.
  2. Under Entry Conditions / Trigger Conditions, click Add Trigger Condition for system-style checks (thresholds, software, services, files, registry, processes, network, event log, script results, time, and more).
  3. Under FlexVar Conditions, choose AND (all conditions must be true) or OR (any condition can be true), then click Add Condition for device FlexVar rules.

All configured conditions must be satisfied for the task to run (in addition to OS / device filters on Basic Info).

Trigger tab with Entry Conditions and FlexVar Conditions

4. Result Monitoring ​

  1. Open Result Monitoring.
  2. Optionally turn on Include in Compliance Monitoring.
  3. Click Add Result Condition to watch script exit codes, output, timing, or status.
  4. Under Alert Actions, configure as needed:
    • Create Portal Alert
    • Prevent Duplicate Alerts
    • Send Email (+ Email Recipients)
    • Send Webhook
    • Alert Message Template
    • Enable this condition (Active)

Result Monitoring with Include in Compliance and Add Result Condition

5. Error Handling ​

  1. Open Error Handling.
  2. Toggle the actions you want when the task fails:
    • Notify on Error
    • Create Alert on Error
    • Update PSA on Error (when PSA is configured)
    • Send Webhook on Error
    • Run Remediation on Error (pick a remediation script or task when offered)

Error Handling toggles for notify, alert, PSA, webhook, remediation

6. Schedule ​

  1. Open Schedule.
  2. Choose Schedule Type:
    • Immediate (run when assigned) — runs when assigned via policy
    • Recurring (cron schedule) — repeats on a cadence
    • Scheduled (one-time) — runs once at Scheduled Time
    • Manual (on-demand only) — only when an admin triggers it
    • On-Demand (triggered by events) — driven by events; pair with Trigger
  3. For Recurring, use Recurring Schedule options such as Every 15 minutes, Every 30 minutes, Hourly, Daily, Weekly, Monthly, or Custom cron.

Schedule tab with Schedule Type and recurring options

7. Self-Healing ​

  1. Open Self-Healing.
  2. Turn on Enable self-healing.
  3. For most modules, set Max retry attempts and Delay between retries (minutes).
  4. For Device connectivity, recovery is schedule-based (unlimited rechecks on each scheduled run). Prefer a Recurring schedule (for example every 5–15 minutes) so offline checks and alert clearances keep running.

Self-Healing tab with Enable self-healing and retry settings

Save ​

  1. Click Create Task (or Update Task).
  2. Confirm the task appears on Automation Tasks.

Edit an existing task ​

  1. On Automation → Tasks → Automation Tasks, find the card.
  2. Click Edit.
  3. Change any tabs, then click Update Task.

Task card Edit action opening Edit Automation Task

Test a task ​

  1. On the task card, click Test.
  2. Confirm the prompt that the task will run immediately on applicable devices.
  3. Check Execution History (or Automation → Executions) for results.

Task card Test action and confirmation prompt

Tips ​

  • Assign tasks to devices through a Policy (Policies tab → Tasks / Assignment); OS and FlexVar filters on the task still apply.
  • Use Multi Step with Depends On Step and On Failure when order and rollback matter.
  • Connectivity self-healing needs a recurring schedule — retries alone do not replace cron ticks for that module.

OnPoint RMM knowledge base