How to Use RMM Scripts, Policies & Auto-Remediation
Build a reusable script library, enforce configuration policies across device groups, and let automations self-heal issues the moment they are detected.
The three building blocks
| Feature | What it does | Where |
|---|---|---|
| Script Library | Reusable PowerShell / Bash scripts you can run on demand or on a schedule | RMM β Scripts |
| Policies | Configuration standards enforced across a device group | RMM β Policies |
| Automations | Triggers that run a script automatically when a condition is met | RMM β Automations |
Building the script library
- Go to RMM β Scripts
- Click + New Script
- Choose the platform (Windows / macOS / Linux) and paste the script
- Add parameters if the script needs input
- Save β the script is now reusable across any device
Run a script on demand from a device's detail page, or attach it to an automation.
Creating a policy
- Go to RMM β Policies
- Click + New Policy
- Define the desired state β for example:
- Firewall enabled
- Disk encryption on
- A specific service running
- Assign the policy to a device group
- Plenix continuously checks compliance and flags (or remediates) any drift
Setting up auto-remediation
- Go to RMM β Automations
- Click + New Automation
- Define:
- Trigger β e.g. "Disk space below 10%" or "Policy drift detected"
- Action β run a script from the library (e.g. clear temp files, restart a service)
- Scope β a device or device group
- Save. The next time the condition occurs, Plenix runs the fix automatically and logs it.
Example: self-healing disk cleanup
- Trigger: free disk space < 10%
- Action: run the "Cleanup Temp & Logs" script
- Scope: All Workstations
- Result: the disk is cleaned automatically; if it stays low, an alert and ticket are raised
Tips
- Test scripts on a single device before attaching them to a group-wide automation
- Every automated action is written to the audit trail
- Combine policies with patch policies for a complete "keep every device healthy" baseline
Where to go next
- Understand the whole module β How Remote Management (RMM) Works
- Next in this module β Install the Plenix Gateway Agent
- How to Remote Control a Managed Device
- See where this fits in the bigger picture β How a Device Problem Becomes a Fix
Was this article helpful?