AvantGuard - NinjaOne icon

AvantGuard - NinjaOne

AvantGuard - NinjaOne

Actions159

Overview

This node allows controlling Windows services on a specified device by sending commands such as start, stop, pause, or restart to the service. It is useful in IT management scenarios where automated control over Windows services is required, for example, restarting a critical service after an update or stopping a service before maintenance.

Practical examples:

  • Automatically restarting a service that has stopped unexpectedly.
  • Pausing a service temporarily during system diagnostics.
  • Starting a service on a remote machine after deployment.

Properties

Name Meaning
Id The identifier of the target device on which the Windows service runs (number).
Service Id The identifier of the Windows service to be controlled (string).
Additional Body Fields Optional additional fields; currently supports selecting the action to perform on the service: START, PAUSE, STOP, RESTART.

Output

The node outputs JSON data representing the response from the service control API call. This typically includes status information about the requested action on the Windows service. There is no indication of binary data output.

Dependencies

  • Requires an API key credential for authentication with the AvantGuard NinjaOne platform.
  • Depends on the AvantGuard NinjaOne API endpoint configured via credentials.
  • Uses the @avantguardllc/n8n-openapi-node package and an OpenAPI specification (openapi.json) bundled with the node for request building.

Troubleshooting

  • Common issues:

    • Invalid device or service identifiers may cause the API to return errors indicating the resource was not found.
    • Insufficient permissions or invalid API credentials will result in authentication errors.
    • Network connectivity problems can prevent the node from reaching the API endpoint.
  • Error messages:

    • "Unauthorized" or "Authentication failed": Check that the API key credential is correctly configured and valid.
    • "Service not found" or similar: Verify that the provided service ID exists on the target device.
    • "Device not found": Confirm the device ID is correct and accessible.

Resolving these usually involves verifying input parameters, ensuring proper credential setup, and confirming network access.

Links and References

Discussion