execute_powershell
Execute PowerShell scripts on target agents to automate penetration testing and Active Directory reconnaissance, encoding scripts as UTF-16LE commands for reliable execution.
Instructions
Execute a PowerShell script on the target agent. The script is sent raw and encoded to UTF-16LE for -EncodedCommand.
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": {
"agent_id": "<agent_id>",
"script": "<script>"
},
"name": "execute_powershell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| agent_id | Yes |