find-contact
Resolve a 3CX contact or extension by email, extension, or name
Execute a script on an endpoint in ConnectWise Automate
$ npx -y skills add wyre-technology/msp-claude-plugins --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/run-scriptContext preview
What this command does when you run it.
Execute a script on an endpoint in ConnectWise Automate
description: Execute a script on an endpoint in ConnectWise Automate argument-hint: "<computer> <script> [params] [wait]" arguments: [computer, script, params, wait]
Execute a script on an endpoint in ConnectWise Automate with optional parameters.
1. **Resolve computer identifier**
2. **Verify computer is online**
3. **Resolve script**
4. **Validate script parameters**
5. **Execute script**
POST /cwa/api/v1/Computers/{computerID}/Scripts/{scriptID}/Execute
Authorization: Bearer {token}
Content-Type: application/json
{
"Parameters": {
"key1": "value1",
"key2": "value2"
}
}6. **Handle result**
| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | computer | string | Yes | - | Computer hostname or ID | | script | string | Yes | - | Script name or ID | | params | string | No | - | Parameters as `key=value,key2=value2` | | wait | flag | No | false | Wait for script completion |
/run-script "ACME-DC01" "Clear Temp Files"
/run-script "ACME-DC01" "Clear Temp Files" --params "days=30,path=C:\\Temp"
/run-script "ACME-DC01" "Clear Temp Files" --wait
/run-script 12345 "Clear Temp Files" --wait
/run-script "ACME-DC01" 1001 --wait
/run-script "ACME-DC01" "Disk Cleanup" --params "drives=C,days=7,logs=true" --wait
Script Queued Successfully Execution ID: 98765 Computer: ACME-DC01 (ID: 12345) Script: Clear Temp Files (ID: 1001) Status: Pending Parameters: days: 30 path: C:\Temp Script will run when the computer checks in (typically within 5 minutes). To check status later: GET /cwa/api/v1/Scripts/Executions/98765
Running script on ACME-DC01... Script: Clear Temp Files Started At: 2024-02-15 10:45:00 UTC Status: Running [=========> ] Executing...
Script Completed Successfully Execution ID: 98765 Computer: ACME-DC01 Script: Clear Temp Files Duration: 45 seconds Exit Code: 0 Output: ---------------------------------------------------------------------- Scanning temporary directories... Found 156 files older than 30 days Deleting files... Successfully deleted 156 files (2.3 GB freed) ---------------------------------------------------------------------- Errors: None
Script Failed Execution ID: 98765 Computer: ACME-DC01 Script: Clear Temp Files Duration: 12 seconds Exit Code: 1 Output: ---------------------------------------------------------------------- Scanning temporary directories... Error: Access denied to C:\Temp\locked.file ---------------------------------------------------------------------- Errors: ---------------------------------------------------------------------- ERROR: Could not delete locked file Process exited with code 1 ---------------------------------------------------------------------- Suggestions: - Check if file is in use by another process - Verify script has appropriate permissions - Run script again after resolving file lock
Script Timed Out Execution ID: 98765 Computer: ACME-DC01 Script: Long Running Script Duration: 300 seconds (timeout) Status: Timeout The script exceeded the maximum execution time. Partial Output: ---------------------------------------------------------------------- Step 1 complete... Step 2 complete... Step 3 in progress... ---------------------------------------------------------------------- The script may still be running on the computer. Check computer logs or run a shorter test script.
Cannot run script - Computer is offline Computer: ACME-DC01 (ID: 12345) Status: Offline Last Contact: 2024-02-15 08:30:00 UTC (2 hours ago) Scripts require the computer to be online. Options: 1. Wait for computer to come online 2. Schedule script for later execution 3. Contact on-site personnel to check computer
Computer not found: "UNKNOWN-PC" No computer matching "UNKNOWN-PC" was found. Suggestions: - Verify the hostname spelling - Use /list-computers to search for computers - Check if the computer exists in Automate
Multiple computers match "DC01": # | Computer | Client | Status | ID ----+---------------+------------------+---------+------- 1 | ACME-DC01 | Acme Corporation | Online | 12345 2 | ACME-DC02 | Acme Corporation | Online | 12346 3 | TECH-DC01 | TechStart Inc | Online | 12400 Please specify a more precise hostname or use the Computer ID.
Script not found: "Clear Temp Filess" Did you mean one of these? - Clear Temp Files (ID: 1001, Folder: Maintenance/Disk) - Clear Browser Cache (ID: 1002, Folder
One command to supercharge Claude Code for MSP workflows. Then restart Claude Code. That's it. Documentation: mcp.wyre.ai
Repo: wyre-technology/msp-claude-plugins
Resolve a 3CX contact or extension by email, extension, or name
Search for specific threat patterns in Abnormal Security by sender, recipient, attack type, or keywords
Triage recent email threats detected by Abnormal Security by severity and attack type