Search the docs
Menu
Updated Edit on GitHub

Fleet tasks

Copy as Markdown

Fleet tasks, under Devices in the sidebar, among the pages behind Show N more, does work on many computers at once. It has four tabs: Resources, Tasks, Workflows and Compliance.

The page needs Manage organization devices, which Global admin and Remote operator have by default, besides Super admin and Administrator.

How the work reaches a computer

The server hands each job to the computer with the answer to its next heartbeat, and NeoDesk Desktop runs it there. A computer that is offline gets its job when it comes back: a task waits up to seven days, a resource list or a scan one day. The installed NeoDesk Companion takes fleet work like Desktop. The Companion in a quick support session takes none, and the server leaves it out when a group or organization brings it in.

When the server has no fleet functions, a notice at the top says so. The forms still open, so you can see what can be set, and a workflow can still be laid out and exported.

Resources

A resource is a printer, a network drive, DNS servers, a VPN or a proxy that the computers of one organization get. Pick the Organization, then click Add resource:

  • Name and Type.
  • Address or path: for example \\server\printer for a printer, \\server\share for a network drive, 8.8.8.8, 1.1.1.1 for DNS servers.
  • Devices that receive it: the whole Organization, a Group or a Device, with the group's name or the device ID in Name or ID.

The list is the whole state the computers should have. Each computer checks it every five minutes with its heartbeat and sets up what is new. What a later list no longer has, the app takes away again. Status in the table says on how many devices a resource is applied. Deleting a resource removes it from the computers.

Tasks

A task runs one job on the computers you name, right away or on a schedule.

The Tasks tab with three tasks: a script once at a set time, updates every week and an install right away, each waiting for its devices, full size

Click Create task:

  • Task name and Type.
  • Devices: device IDs or group names, separated by commas. org: with an organization's ID, group: and tag: with a name pick all their devices. field: with a key, an operator and a value picks the devices whose device field has that value, for example field:customer:eq:Kestrel Freight or field:contract_end:max:2027-03-31. The operators are eq, contains, min and max, and field:<key>:empty and field:<key>:notempty need no value. Like every other entry, several field: entries add up. A field group is named like any group. A task can name up to 500 entries.
  • When it runs: Right away, Once, at a set time, or Repeating (cron) with a cron expression such as */5 * * * *. The server reads the times in its own time zone.
  • Hold alerts for these devices while the task runs, for update, install, restart and script tasks that run right away or once: a maintenance window for the task's devices from its start until its last device reports, plus 15 minutes. A device that hasn't come back by then still raises its alert. It's ticked by default for update and restart tasks.
  • Script or command: what the type needs, see the table.
  • Retries, 0 to 3, and Time limit in seconds, 30 to 3600. A run that takes longer is stopped and counts as timed out.
Type What runs on the computer Script or command
Script The script, in PowerShell on Windows and a shell on Linux and macOS The script
Install The package from winget on Windows, Homebrew on macOS, or apt-get, dnf, zypper or yum on Linux; or an installer downloaded over https A package name, or an https address with the installer's arguments after it
Update The system's updates Nothing
Restart A restart of the computer one minute later, with a notice Nothing
Copy file A download to a path on the computer {"url": "https://...", "path": "C:\\Tools\\file.exe"}, with "sha256" to check the file
Change registry An import of the text as a .reg file, on Windows only The registry entries

A field: entry can only name a field you can see. To accounts that don't see the field, such as a restricted one, the task shows the entry as field:(hidden), and only an account that sees the field may change the task. A scheduled run picks the devices by their values at that moment.

The Create task sheet for an update of tag:server right away, with Hold alerts for these devices while the task runs ticked, full size

Click a task to see its last run computer by computer: the state, the exit code, the attempt and when it finished, and below that what the computers printed. A failed run goes again while the task has retries left. Retry starts a failed task again. A computer that hasn't finished an earlier run of the task is skipped, so a schedule doesn't pile up runs for an offline computer.

Workflows

A workflow chains steps. Add steps from the list on the left by clicking or dragging them onto the canvas, then connect the dot on the right of one step to the dot on the left of the next, or use Connect to in the step settings on the right. The toolbar has the list of saved workflows, New workflow, Export to save it as a JSON file, Dry run, Run… and Save, which asks for a name.

Group Steps What they do in a run
Start Manual trigger, Schedule, Event trigger Each names the Devices it runs on. Schedule starts the workflow on a cron expression. Events aren't watched yet, so an event trigger starts its branch when you run the workflow.
Conditions Operating system check, Threshold, Time window Keep only the computers with that system, or with CPU, memory or disk use past a value at their last report, or go on only inside the hours and days you set, in the server's time.
Actions Run script, Install software, Restart service, Copy file, Send message Each but Send message becomes a task on the computers that got this far. Send message posts its Message to notification channels.
Results Log output, Send alert, Start another workflow The output stays with each task. Send alert posts an alert with its Severity to notification channels. Up to three workflows can start each other in a chain.
Change data Read JSON, Filter, Delay Delay starts the steps after it up to a day later. Read JSON and Filter don't run yet.

Dry run walks the workflow and shows what each step would do, with nothing changed on the computers. Use it before Run…, which asks first and then makes the tasks.

Send alert and Send message

These two steps post to the notification channels when a run starts, once per step and run, not once per computer.

The workflow builder with a manual trigger connected to Alert on-call and Tell technicians, and the settings of the Send alert step on the right: Message, Severity and the ticked channels, full size

  • Message: the text, at most 2000 characters. Send message needs one; an alert without one says the step's name.
  • Severity (only Send alert): Info, Warning or Critical, Warning at first.
  • Channels: the channels the step posts to. Without a pick, an alert goes to every channel that subscribes to Workflow alert, and a message to every channel that subscribes to Workflow message. A channel that is picked and subscribes gets it once.

The post names the workflow and the computers that reached the step, and links to the workflow builder. A step that no computer reaches, for example behind a Threshold that none passes, sends nothing. A Delay before the step delays the tasks but not the message. Webhooks that subscribe to Workflow alert or Workflow message get the same events; see Webhooks.

Compliance

Compliance shows how each computer of your organizations does in a security scan: firewall, disk encryption, system updates, antivirus and screen lock, as far as the system can answer them. The Score is the share of checks it passed. A summary above the table counts the computers that meet the rules, those with warnings and the critical ones.

The server scans every computer in an organization once a day. Scan in a row, or Scan all devices, asks for a new scan, which waits for the computer's next heartbeat. The row menu has Checks and software, with each check, what the computer reported and its installed software, and Fix automatically. That asks the computer to repair what it can, such as a firewall that is off or missing updates, and can restart services. A click on the row opens the device panel.

Type to search pages, sections, commands and settings.