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.

Antivirus (Windows)
Malwarebytes Managed Antivirus - Network Connectivity Sophos Definition Update
Application Control (Windows)
Active Directory Users Query Compress File (AM) Compress Folder (AM)
Count Files in Folder (AM) Download and Extract Zip File Get Installed Applications (AM)
Get Mapped Drives (Persistent) (AM) Get Startup Applications (AM) Running Process
Search for File (AM) Service Control Set Default IE Homepage (AM)
SQL Query SQL Server Details (AM) Start IIS Website (AM)
Stop IIS WebSite (AM) User Notification  
Application Control (macOS)
User Notification    
Clean-Up (Windows)
Clean Temp Log Files Clear Event Log Defrag
Exchange (Windows)
Large Mailboxes  (Exchange 2007 or later) Exchange Store Control - Exchange 2003 Exchange Store Control - Exchange 2007 (or later)
Install/Remove Software (Windows)
Install software from Amazon (AM) Install software from FTP (AM) Install software from a Server (AM)
Install software from a URL Uninstall Application (MSI) (AM)  
Maintenance (macOS)
Backup and Purge Cache Data Disable Firewall Disable Gatekeeper
Enable Firewall Enable Gatekeeper Extended Memory Testing
Install Application from URL Install Application(s)using Installomator Logout User
Purge Font Cache Relaunch Device Management for Apple enrollment guide Repair Permissions on Installed Packages
Reset Print Queue Run Managed Patch Start Time Machine Backup
Stop Time Machine Backup Verify and Repair Volume Structures  
Security (Windows)
Bittorrent Detection and Mitigation Disable Firewall (AM) Enable Bitlocker
Enable Firewall (AM) Enable TLS 1.2 Lock Workstation (AM) (not Windows 7)
Lockdown Machine (AM) Reset Firewall Settings (AM) Run Windows Defender Full Scan (AM)
Run Windows Defender Quick Scan (AM) Workstation Secure Settings Maintenance  
System Control (Windows)
Backup All Event Logs (AM) Check Disk (AM) Cleanse Hard Disk (AM)
Create Mapped Drive (AM) Delete Old Folders Disable CD-ROM (AM)
Disable USB (AM) Disable Wireless Adapters (AM) Empty Recycle Bin (AM)
Enable CD-ROM (AM) Enable USB (AM) Enable Wireless Adapters (AM)
Get Basic System Details (AM) Get Full System Details (AM) Install .NET 4.5.1
Map Network Printer (AM) Perform Disk Maintenance (AM) Reboot
Renew DHCP (AM) Set Power Plan (AM) Synchronize Domain Controller (AM)
Wake on LAN (AM) Windows Machine Shutdown  
User Control (Windows)
Add or Remove User from Admin Group (AM) Add User to Domain Group (AM) Add User To Local Group (AM)
Create AD Group (AM) Create Local User (AM) Delete AD User (AM)
Disable All Guest Accounts (AM) Disable local user (AM) Disable UAC (AM)
Enable UAC (AM) Is UAC Enabled (AM) Remove Domain User from Local Group (AM)
Remove Local Profile (AM) Remove User from Domain Group (AM) Rename Local Administrator Account (AM)
Require AD User Password Change (AM) Set AD User Password Unlock and Reset Local User Password (AM)
Unlock Local User Account (AM)    
Virtualization (Windows)
Pause Hyper-V VM (AM) Reset Hyper-V VM (AM) Resume Hyper-V VM (AM)
Shutdown Hyper-V VM (AM) Start Hyper-V VM (AM) VMware ESXi Virtual Machine Control

.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.