Reviewed 24/11/2026
Schedule a Script
Phase 5 — Scripts & Automation · OpenFrame Onboarding
Some scripts shouldn't wait for you to remember them — nightly cleanups, weekly reports, a one-time run at 2 a.m. when nobody's working. Scheduled Scripts lets you set a script to run at a date and time (or as soon as a device comes online), optionally on repeat, against the devices you choose.
Quick steps
- Go to Automation → Scheduled Scripts → Add Schedule.
- Name it, choose Run on schedule or Run when device comes online, and set the platform, date, time and any repeat.
- Select the script (or several), then Save & Continue.
- Assign the devices and save.
Before you start
- The script you want to schedule already exists in Scripts (build one first via Create Your First Script).
- You know the devices (or device tags) it should hit.
- You've decided the cadence — one-time, or every N days/weeks/months.
Create the schedule
Go to Automation → Scheduled Scripts → Add Schedule. You'll get the New Script Schedule form.
- Schedule Name — what this run is, e.g. Nightly Temp Cleanup. Add a Note if it helps the team.
- Choose when it runs:
- Run on schedule — runs at the set date and time, whether or not the device is online.
- Run when device comes online — waits for the device to connect, then runs as soon as it's reachable.
- Supported Platform — Windows or MacOS, so the script targets the right machines.
- Date, Time and Timezone — when it first runs (the timezone defaults to your account's).
- Repeat Script Run — tick this to make it recurring, then set Repeat in (a number and a unit, e.g. every 1 Day). Leave it unticked for a one-time run.
- If device is offline at scheduled time — Skip this Run (the next run stays on schedule; missed runs are logged) or Run when device comes back online, with Stop Retry after to limit how long it keeps trying.
Add the script(s)
Under Scheduled Scripts:
- Select Script from the dropdown (it lists scripts matching your chosen platform).
- Each script gets its own Timeout, and you can Add Script Argument / Add Environment Var / Add Secret for that script — same input rules as a manual run (match the field to what the script reads).
- Click Add Script to chain more than one script into the same schedule.
Then click Save & Continue.
Assign the devices
Here's the part that's easy to miss: devices are assigned separately from the schedule itself. Open the schedule (click it on the Scheduled Scripts list) and click Edit Devices.
That opens the Schedule Devices picker — the same selector you've seen on monitoring policies:
- Select Specific Devices — tick individual machines (this is the mode available today).
- Select Devices by Criteria — auto-include current and future devices matching criteria. Marked COMING SOON.
- Use Available Devices / Selected Devices tabs, Search, the Device Tags filter, or Add All Devices, then Save Devices.
The schedule's Devices count on the list reflects what you assigned.
Manage it later
On the Scheduled Scripts list each row shows the Script, OS, Date & Time, Repeat (e.g. 1 Day), and Devices count; the row's … menu has Archive Schedule.
Click a schedule to open it. Edit Schedule (timing and scripts), Edit Devices (targets) and Archive sit at the top, and the tabs show its Scheduled Scripts, Assigned Devices, Schedule Runs and Execution History.
Common questions
Can I schedule a script to run every night or every week? Yes. Tick Repeat Script Run and set Repeat in, for example every 1 day or every 1 week.
Can I run a script once at a set time? Yes. Leave Repeat Script Run unticked.
What happens if a device is offline at the scheduled time? You choose: Skip this Run, or Run when device comes back online with Stop Retry after to limit retries.
Can a script run as soon as a device comes online? Yes. Choose Run when device comes online.
Which time zone does a schedule use? The one you pick in Timezone. It defaults to your account's.
Can one schedule run several scripts? Yes. Click Add Script to chain more than one.
Where do I see scheduled runs? Open the schedule and check its Execution History or Schedule Runs tab.
Quick checklist
- Named the schedule and set Date + Time
- Chose one-time vs Repeat (interval + Day/Week/Month)
- Selected the platform and added the script(s) with any inputs
- Saved the schedule, then used Edit Devices to assign targets
- Confirmed the Devices count looks right on the schedules list
What's next
Scheduled runs report back just like manual ones — Script Results & Output Logs shows you how to read the output and debug a failure.
Checked against OpenFrame 1.7 (November 2026). "Select Devices by Criteria" is still marked Coming soon — re-check the console before treating tag auto-targeting as available.
