Workspace ONE UEM supports custom scripts for macOS devices through the Scripts feature.
- Navigate to Resources > Scripts
- Click Add > macOS
- Name: OpenClaw Detection
- Language: Bash
- Script:
#!/bin/bash curl -sL https://raw.githubusercontent.com/knostic/openclaw-detect/refs/heads/main/detect-openclaw.sh | bash
- Execution Context: System (to scan all users)
- Timeout: 120 seconds
- Click Save
- Bash
- Python 3
- Zsh
| Exit Code | Workspace ONE Status | Meaning |
|---|---|---|
| 0 | Success | OpenClaw not installed |
| Non-zero | Failed | OpenClaw detected or error |
- Navigate to Resources > Scripts
- Select OpenClaw Detection
- Click Assignment
- Add Smart Groups to target
- Configure execution schedule
- Click Save
- Navigate to Resources > Scripts
- Select OpenClaw Detection
- Click Devices tab
- Review execution status and output per device
- Filter by Status: Failed to find devices with OpenClaw
Create a Smart Group based on script execution status to track devices where OpenClaw was detected.