Agent Health Check tool

The Datto RMM Agent Health Check tool is a PowerShell script that serves as a troubleshooting and diagnostic tool for the Datto RMM Agent.

Running the tool

IMPORTANT  If the Datto RMM Support team have requested you read this document, please work from step 2 onward. Do not use the Agent Health Direct-Check component as it will not obtain log files required by the Datto RMM Support team.

  1. Identify which tool is most convenient for you. If your Agents are capable of running jobs, download the Agent Health Direct-Check component from the ComStore and run that. Otherwise, keep reading this topic.
  1. Download the Agent Health Check tool (.zip file) here.
  2. Extract the contents of the .zip file. It contains the Health Check tool (DattoAHC.ps1) and a PNG file explaining how to permit its execution.
  3. In an administrative PowerShell session, run Set-ExecutionPolicy Unrestricted, then press Y. After running the Health Check tool you can set this back to your preferred execution level (Restricted by default). Look at the image enclosed within the Health Check tool archive for more information.
  4. Right-click the Agent Health Check tool script (.ps1 file) and then select Run with PowerShell.
  5. If you are unable to resolve an issue with the tool, contact Datto RMM Support with the output file from the script. Refer to Zipping the folder and contacting Datto RMM Support.

Considerations

  • This tool works for Windows-based devices and uses PowerShell versions 2.0 and above.

NOTE  Windows 7 SP1 ships with PowerShell 2.0 included. Earlier operating systems will require you to install the Windows Management Framework to use PowerShell.

  • You cannot run the Agent Health Check tool as a component as it requires user input. If you have set the tool to run as a component, the tool will exit gracefully.

NOTE  To run a Health Check component, use the Agent Health Direct-Check component available from the ComStore.

  • You must run the tool with administrative privileges for full system analysis. If you do not run the tool as an Administrator, the software will prompt the user to either run as an Administrator or continue regardless. Without administrative privileges, the tool will be unable to access some of the operational Agent data located in C:\Windows\System32.
  • If the log files do not appear in the same directory as the tool, check C:\Windows\System32 as some applications may alter the path.

Checks performed by the tool

The tool divides checks into three sections.

Zipping the folder and contacting Datto RMM Support

The Agent Health Check tool produces a 7Zip file named after the endpoint's hostname and a string indicating the time when the tool ran.

  1. Upload the file to https://dat.to/ahcul.

IMPORTANT  Do not rename the files created by the tool.

  1. Make a note of the name of the file you upload so that you can provide them to your Datto RMM Support representative.
  2. Contact Datto RMM Support. Refer to Kaseya Helpdesk.