winops_svc_restart
Restart a Windows service and wait for it to reach the running state. Set an optional timeout (5-120 seconds) to control how long to wait before returning the status.
Instructions
Restart a Windows service and wait for running state.
Return Format
{"success": bool, "name": str, "status": str}Examples
restart(service_name="spooler")Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes | Windows service name to restart. | |
| wait_timeout | No | Seconds to wait for running state. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||