run_script_on_device
Execute a saved script from the NinjaOne library on a specific device to automate tasks or perform maintenance remotely.
Instructions
Execute a saved script on a specific device. The script must already exist in NinjaOne's script library.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | NinjaOne device ID to run the script on | |
| script_id | Yes | ID of the saved script to execute | |
| run_as | No | Security context to run the script under | SYSTEM |
| parameters | No | Optional parameters to pass to the script |