Run Windows Service Control
ninjaone_run_windows_service_controlStart, stop, pause, or restart a Windows service on a specific device, with explicit confirmation required before the live service change is applied.
Instructions
Start, stop, pause or restart a Windows service on one device. Find the service with ninjaone_list_device_services. Never retried automatically. Body (object) per NinjaOne controlWindowsService. Fields: action ("START"|"PAUSE"|"STOP"|"RESTART"). Destructive tier: needs NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true and confirm: true.
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": {
"device_id": "<device_id>",
"service_id": "<service_id>",
"body": "<body>",
"confirm": "<confirm>"
},
"name": "ninjaone_run_windows_service_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body as NinjaOne documents it for controlWindowsService. Field names are NinjaOne's (camelCase). | |
| confirm | Yes | Must be exactly true. States that this call changes live data. There is no undo from this server. | |
| device_id | Yes | Device id (from ninjaone_list_devices or ninjaone_search_devices). | |
| service_id | Yes | Service name or id. |