Restart NinjaRMM Agent Service
Overview
This is an on-demand script that schedules a one-time task to restart NinjaRMM Agent and Ninja Remote services after 3 minutes. It performs the following actions:
- Checks if the
EnsureNinjaServiceRunningscheduled task exists before proceeding. - This script will not execute unless the
EnsureNinjaServiceRunningscheduled task exists. - Creates a restart service script on disk.
- Registers a one-time scheduled task to restart NinjaRMMAgent and ncstreamer 3 minutes after execution from Ninja.
- The scheduled task runs as SYSTEM with highest privileges
Please Note: If the EnsureNinjaServiceRunning scheduled task is missing, the script Ensure Ninja Service is Running must be executed first.
Dependencies
Sample Run
Play Button > Run Automation > Script
Automation Setup/Import
Output
- Activity Details
Changelog
2026-03-24
- The script modified to run as an on-demand script to restart the services only when the scheduled task
EnsureNinjaServiceRunningexists on the computer.
2026-03-10
- Initial version of the document