Datto RMM - Deployment Component (Script)
Learn how to deploy Datto RMM with a simple script, and get up and running quickly.
Table of Contents
This document explains how AutoElevate's official Datto RMM deployment script works, how to install the component in your component library, and some considerations if you have previously deployed agents.
There is no need to manually create Companies in the AutoElevate Admin Portal.
You run the script on the target device(s), and the latest MSI will download and install, with the License, Companies, and Locations automatically filled. Refresh the data using the "Refresh Data" button in the AutoElevate Admin Portal 'Computers' screen, and you should see the company/location/computer show up.
How it Works
The script grabs the company (site) information from the CS_PROFILE_NAME environment variable on the endpoint and updates the MSI installation arguments along with the variables set in the component. This prevents the need to manually input the "Company Name" when deploying.
Component Installation
-
Import the CPT file attached at the bottom of this document (AutoElevate Deployment-2024.cpt) using the Import Component button on the Components screen.
-
Set required variables. Once uploaded, you must change some variables on the component before you Save it to your library. The variables you will need to change are:
-
inputLicenseKey - REQUIRED - Your AutoElevate license key is found on the Settings screen in the AutoElevate Admin Portal.
-
inputAgentMode - OPTIONAL - The agent mode that the agent will be set to initially. This can be set to Audit (default), Live & Policy. For a detailed explanation of these modes, see this document.
-
inputDefaultLocationName - OPTIONAL - Enter the Location Name as it appears in the Admin Portal - Default is Main Office. This field cannot be empty but can be set to whatever value you prefer.
- inputDebugPrintEnabled - OPTIONAL - Set to True to see more detailed output logs.
-
InputBlockerMode - OPTIONAL - The blocker mode that the agent will be set to initially. This can be set to Disabled (default), Audit & Live. For a detailed explanation of these modes, see this document.
-
inputLicenseKey - REQUIRED - Your AutoElevate license key is found on the Settings screen in the AutoElevate Admin Portal.
-
Save. Click the Save button in the top right corner.
-
Schedule a job. You are now ready to use this component to schedule jobs on devices listed in Datto.
Additional Considerations
If you have manually created any Companies in the AutoElevate Admin Portal, you may see duplicates appear after using this script. This is because the Datto Site ID is being used to identify the new Company created by the script (something that you could not supply when creating them manually).
To resolve this issue and ensure that further script jobs for the same Company don't continue to create duplicates, you will need to Merge the Companies. To do this, you will need to:
- Navigate to the Companies screen in the AutoElevate Admin Portal.
- Select both Companies in question.
- Select the Merge action from the Actions menu.
- Follow the instructions on the dialog to follow. It's important that you set the Company that was created with the script to be the "Target" Company. This will ensure that the older, manually created Company will be merged into the new one.