Scripts¶
Script assemblies store reusable PowerShell, Batch, or Bash payloads. Use them for quick jobs, scheduled jobs, current-user tasks, SYSTEM remediation, and watchdog run-assembly actions.
Create Script¶
- Open
Automation > Assemblies. - Select
New Script. - Enter name and description.
- Choose script subtype.
- Add script body.
- Add variables when operator input should be collected before execution.
- Save.
Run Script Quickly¶
Device Summary and Device List expose Quick Job actions. Pick script assembly, fill variables, choose target context, and run against selected devices.
Schedule Script¶
Scheduled script jobs support:
systemcontext for elevated agent runtime.current_usercontext for helper-backed interactive user sessions.
If no eligible current-user helper exists, Borealis records dispatch failure instead of falling back to SYSTEM.
Use Variables¶
Define variables in the assembly when values should change by run. Borealis injects variables into agent-side script environment and rewrites PowerShell $env:VAR references before dispatch.
Detailed Codex Breakdown
API endpoints¶
POST /api/scripts/quick_run- quick script run.GET /api/device/activity/<hostname>- script activity history.DELETE /api/device/activity/<hostname>- clear history.GET /api/device/activity/job/<job_id>- activity record detail.- Assembly CRUD endpoints are listed in Assemblies.
Related documentation¶
Source map¶
- Script execution API:
Data/Engine/Containers/api-backend/data/services/API/assemblies/execution.py - Quick job dialog:
Data/Engine/Containers/webui-frontend/data/web-interface/src/Assemblies/Quick_Job_Dialog.jsx - Agent system context role:
Data/Agent/internal/roles/system_context/ - Agent current-user role:
Data/Agent/internal/roles/current_user/
Runtime behavior¶
- Engine signs script bytes with Ed25519 before dispatch.
- Agent verifies signature before execution.
- Quick-job results update
activity_historyand emitdevice_activity_changed. - Current-user runs route through SYSTEM broker into helper-ready sessions; helpers do not authenticate to Engine.