Run PowerShell on a Windows endpoint
action1_run_powershellRun PowerShell scripts on Windows endpoints through Action1 with dry-run preview, endpoint/group targeting, and SYSTEM-level execution for remote administration.
Instructions
Run PowerShell on a Windows endpoint via the run_powershell template. Runs as SYSTEM (no user profile).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"endpoint_id": "<endpoint_id>",
"script_text": "<script_text>"
},
"name": "action1_run_powershell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Friendly action name. | |
| org_id | No | Org UUID. | |
| confirm | No | Required to execute. Exact string "YES". | |
| dry_run | No | Default true (preview). Set false to execute. | |
| endpoint_id | Yes | Endpoint UUID, or Group ID when target_type='EndpointGroup'. | |
| script_text | Yes | Script source. | |
| target_type | No | Endpoint (default) or EndpointGroup for fan-out. | |
| retry_minutes | No | Retry window in minutes when endpoint is offline. | |
| response_format | No | Output format. Default markdown. | |
| timeout_minutes | No | Per-action timeout in minutes (number or digit-string). | |
| success_exit_codes | No | Comma-separated success exit codes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||