Actions32
- Device Actions
- Control Windows Service
- Get
- Get Activities
- Get Alerts
- Get Custom Fields
- Get Dashboard URL
- Get Disks
- Get Jobs
- Get Last Logged On User
- Get Many
- Get Network Interfaces
- Get OS Patch Installs
- Get OS Patches
- Get Policy Overrides
- Get Processors
- Get Software
- Get Software Patch Installs
- Get Software Patches
- Get Volumes
- Get Windows Services
- Reboot Device
- Run Script
- Update Custom Fields
- Ticket Actions
- Organization Actions
Device → Control Windows Service
AI-generatedOverview
This node operation allows users to control a Windows service on a specified device via the NinjaOne API. Users can start, stop, or restart a Windows service by providing the device ID and the service name. This is useful for IT administrators who need to manage services on remote devices programmatically, such as restarting a web server service or stopping a service for maintenance.
Use Case Examples
- Start the 'W3SVC' service on a remote device by specifying the device ID and service name.
- Stop a problematic Windows service on a device to troubleshoot issues.
- Restart a service to apply configuration changes without rebooting the device.
Properties
| Name | Meaning |
|---|---|
| Device ID | ID of the device on which the Windows service will be controlled. |
| Service Name | Name of the Windows service to control (e.g., 'W3SVC'). |
| Action | The action to perform on the Windows service: Start, Stop, or Restart. |
Output
JSON
status- The status or result of the service control action performed.message- Additional message or information returned from the API about the action.
Dependencies
- Requires NinjaOne API credentials for authentication and access.
Troubleshooting
- Ensure the device ID is correct and the device is reachable via the NinjaOne platform.
- Verify the service name is accurate and exists on the target device.
- Check that the API credentials have sufficient permissions to control services on the device.
- Common errors may include authentication failures, invalid device ID, or service not found errors.
Links
- NinjaOne API Documentation - Official API documentation for NinjaOne, useful for understanding available endpoints and parameters.