System Automated Tasks
The following default Automated Tasks are available. The operating system (Windows or macOS) indicates the system the script runs on.
Automated Tasks created using the Automation Manager are shown with (AM) in the following table.
.NET 4.5.1
Any device running .amp scripts (including those System Automated Tasks created by the Automation Manager and marked as AM above) must have .NET 4.5.1 or later installed.
This version of .NET is automatically includes in Windows 8.1, Windows 10 and Server 2012 R2, with Microsoft offering compatible downloads for the other Windows Operating Systems we support.
To ensure the script will execute successfully, the Agent queries the device for the presence of a supported version of .NET when attempting to run a Script Check or Automated Task which utilizes a .amp script. If .NET is missing (or an older version installed) the Check or Task will fail with a unsupported .NET error message displayed in its More Information section on the All Devices view.
Although we detect the presence of .NET on a device we do not automatically install or upgrade the program and rather than manually download and install the required version of .NET on each computer where missing or requiring an upgrade; we have included a System Control Automated Task to automatically Install .NET 4.5.1 on to the target devices at a time of your choosing.
Download Automation Manager System Automated Tasks
The scripts marked AM were created using our Automation Manager and as we are aware that it may be useful to tweak these scripts to precisely match your requirements we have made them available for download in the Download Default Automation Manager Scripts section.
To edit, simply download the target .amp script, open in the Windows only Automation Manager, amend, test then save the file. Once complete upload the updated script to your All Devices view as a custom Script Check and / or Automated Task via Settings > Script Manager ready for its deployment.
User defined script tasks
For any other maintenance activities for which an Automated Task does not already exist, a custom Automated Tasks may be authored. Write the script to perform the required maintenance activity, upload it to the All Devices view via Settings menu, Script Manager and then select this as the automated task.
The Automated Task will be reported as passed when the return code from the script is 0. All other return codes will cause the check to be reported as failed.
Note, we have reserved the exit codes 1 to 999 for use for the system scripts. As such we recommend returning an exit code greater than 1000 in your scripts to ensure the text output is displayed correctly in the N-sight RMM UI.
Supported script size: up to a maximum of 65535 characters
Supported script output size: up to a maximum of 10000 characters
Further information on configuring your own script can be found in the section Scripts.
We provide the mechanism to run your own scripts on your servers and workstations; however, we are not responsible for custom scripts made or used in conjunction with this product. We are not liable for loss incurred from system, hardware or data loss. It is the customer/developer's responsibility to verify the integrity, actions and impact of any custom scripts.