cmd_admin_run
Run Windows CMD commands with administrator privileges to execute elevated tasks like netsh, sc query, icacls, dism, and sfc, capturing output for review.
Instructions
Run a Windows CMD command with Administrator (elevated) privileges. Uses PowerShell Start-Process -Verb RunAs to launch an elevated cmd.exe. Output is captured via temp files since elevated processes cannot pipe stdio to non-elevated parents. Use this for commands that require admin rights (e.g., netsh, sc query, icacls, dism, sfc). NOTE: UAC prompt may appear if not already elevated.
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": {
"command": "<command>"
},
"name": "cmd_admin_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory. Defaults to the server start directory. | |
| command | Yes | The CMD command to run as Administrator | |
| timeout | No | Timeout in ms. Defaults to 15000. Max 30000. |