Run a Script on a Device

This feature allows administrators to execute scripts on enrolled Windows and macOS devices directly from the admin portal. Admins can select one or more devices, choose a script from the library, customize settings, and monitor execution status in real-time.

When a script is executed, the system sends a run command to the agent on each selected device(s). The agent syncs the script definition, retrieves necessary dependencies, and updates its status as it progresses. Once the script starts running, the agent continuously reports its status. Upon completion, the system logs the results, updates the job status, and stores execution logs for tracking. This streamlined process ensures efficient script execution, real-time tracking, and visibility into job outcomes.

To execute a script on selected devices,

  1. Go to Devices in the top navigation to open the devices list.
  2. Select a device where the script will run. The details display in the in the right pane.
  3. Click the Scripting tab to display the list of scripts on the device.
  4. Click Run Script. A list of scripts in the library displays.
  5. Select a script from the available list.
  6. (Optional) Click Customize Settings to modify the script settings. You can change the script parameters if required.
  7. Enter a job Description if necessary.
  8. Click Run to execute the selected script on the chosen device(s).
    A new job is created, and the system starts processing the script. You are redirected to the Jobs details page in Devices.
  9. View the job status in Devices > Scripting > Jobs as the script runs.
  10. The status updates dynamically based on execution progress.