Theme
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
- In the left side menu, click Scripts.

Create a script
- Click Add Script.
- The fullscreen editor opens titled New Script.
- 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)
- Write or paste the script body in the editor.
- Click Save Script.
- Or click Cancel to discard and return to the library.

Create from a template
- Click Templates.
- Pick a template.
- The editor opens with content copied in — adjust fields as needed.
- Click Save Script.
Edit a script
- Click Edit on the script row (or open the slide-over and edit from there).
- The editor opens titled Edit Script.
- Update fields and content.
- Click Update Script.
Delete a script
- Click Delete on the script row.
- Confirm. The script leaves the library; past executions are not undone.
FlexVars in scripts
- Click FlexVars Help on the Scripts page for syntax and examples.
- Reference FlexVars in script content; values resolve at run time per device scope.
- 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.
