running scripts
Running a script requires automation:execute (technician and above), and the script must be approved — see writing scripts.
where the Run Script dialog appears
There are two different dialogs, and which one you get depends on where you start.
| Starting point | Dialog | Targets |
|---|---|---|
| A script's detail page | Two-step, with Devices and Groups tabs | Devices or a group, chosen in the dialog |
| A device detail page | Single-step | That single device |
| The devices list, as a bulk action | Single-step | The devices you have selected |
| A group detail page | Single-step | That group |
The single-step dialogs have no target-selection step at all — the targets are already decided by where you opened them from. You pick the script and choose Run Now or Schedule for Later, and that is the whole dialog.
The two-step dialog described below appears only on a script's detail page, because that is the only place where the script is known and the targets are not.
step 1 — select targets
(Script detail page only.) Two tabs:
| Tab | Behaviour |
|---|---|
| Devices | A searchable multi-select list — pick as many devices as you need |
| Groups | A searchable single-select list. Each row shows its member count and whether it is Static or Dynamic |
Folder groups are not offered on the Groups tab, since they hold other groups rather than devices.
Switching tabs clears your selection. If you pick fifteen devices and then click over to Groups to check something, those fifteen are gone. Decide which axis you are targeting before you start selecting.
step 2 — confirm
Two ways to finish:
Run Now
Starts the run immediately and takes you to the execution detail page, where results arrive live. A toast tells you how many devices started and how many were offline.
Schedule for Later
A date-and-time field. This creates a one-time schedule rather than running anything now.
offline devices are silently excluded
This is the single most important thing to understand about running scripts.
Devices that are not online, or not connected, are excluded from the run without warning — and they are not counted in the execution's device total. An execution against 40 devices where 12 are offline is created as a 28-device execution, and the 12 leave no per-device rows behind.
If every targeted device is offline, the run is not created at all and you get an error saying no devices are online or connected.
The practical consequences:
- The toast is your record. It is the only place that tells you how many devices were skipped for being offline. Read it before you navigate away.
- A 100% success rate does not mean the whole estate is done. It means every device that actually received the script succeeded. Compare the execution's device count against the number you targeted.
- Re-run later to catch stragglers. There is no automatic retry for devices that were skipped. Retry Failed will not help either — a device skipped for being offline never entered the execution, so it is not a failed device and the retry does not target it. Run again or use a schedule.
For work that must eventually reach every till — a configuration change, a certificate install — put it on a recurring schedule rather than running it once by hand. Each run picks up whichever devices happen to be online at the time, and repeated runs converge on full coverage.
dispatch is asynchronous
When you press Run Now, PosKit creates the execution and returns it to you straight away, then fans the commands out to devices in the background. This is deliberate: it means a run against a large estate does not sit spinning or time out in your browser.
What you will see as a result:
- The execution page opens immediately, often before every device has a row.
- Rows fill in as the commands land. The page polls every 3 seconds while the run is pending or running.
- A device appearing a few seconds late is normal, not a failure.
android devices
Android devices cannot run scripts — the Android agent has no script-execution capability. The Run Script button is correctly not offered on an Android device's detail page.
Where they are excluded differs by path, though:
- Scheduled runs exclude Android devices explicitly. A schedule whose tags or groups catch an Android device will not dispatch to it.
- Manual runs do not. A manual run filters targets only on being online and connected, so an online Android device caught by a bulk selection is dispatched to. The agent then ignores the command, because running scripts is not something it can do.
A manual run that includes online Android devices will show them in the execution and they will never produce a useful result. Keep Android devices out of bulk script selections yourself — nothing upstream will do it for you.