Skip to content

Create & edit scripts ​

What this is ​

How to add a new script to the library, start from a template, or change an existing script (name, content, language, target OS, and run-as).

Who can use it ​

Anyone with Scripts create/edit access.

How to open it ​

  1. In the left side menu, click Scripts.

Left side menu with Scripts selected

Create a script ​

  1. Click Add Script.
  2. The fullscreen editor opens titled New Script.
  3. Fill in:
    • Script Name (required)
    • Description
    • Target OS — Windows, Linux, macOS, or All Platforms
    • Language — PowerShell, Bash, or Python
    • Run As — e.g. system or active user (as offered in the control)
  4. Write or paste the script body in the editor.
  5. Click Save Script.
  6. Or click Cancel to discard and return to the library.

New Script fullscreen editor with Save Script

Create from a template ​

  1. Click Templates.
  2. Pick a template.
  3. The editor opens with content copied in — adjust fields as needed.
  4. Click Save Script.

Edit a script ​

  1. Click Edit on the script row (or open the slide-over and edit from there).
  2. The editor opens titled Edit Script.
  3. Update fields and content.
  4. Click Update Script.

Delete a script ​

  1. Click Delete on the script row.
  2. Confirm. The script leaves the library; past executions are not undone.

FlexVars in scripts ​

  1. Click FlexVars Help on the Scripts page for syntax and examples.
  2. Reference FlexVars in script content; values resolve at run time per device scope.
  3. For one-shot values on a single device run, see Run scripts with RuntimeVars.

Tips ​

  • Keep Target OS and Language aligned with the devices you intend to run on.
  • Prefer Templates for common remediations so naming and run-as stay consistent.
  • Save Script / Update Script only writes the library definition — it does not execute the script.

OnPoint RMM knowledge base