Deploying the Datto Endpoint Security agent via Group Policy Object (GPO)

NAVIGATION   > Organizations > select an organization > select a location >  > Download Agent

SECURITY   Datto EDR subscription with administrator-level platform access or Datto AV subscription with administrator-level platform access

SECURITY   Service account or administrator-level rights on the target endpoint

This article describes the process for deploying the Endpoint Security agent via Group Policy Object (GPO). If you are directly installing the Endpoint Security agent on an endpoint, refer to Deploying the Datto Endpoint Security agent.

NOTE  Datto AV protection is delivered by the Datto Endpoint Security agent and is managed from the Policies page.

Prerequisites

Before you begin, we need to understand your current environment and what you'd like to do.

  • If you're a Datto EDR or Datto AV customer deploying the Endpoint Security agent to endpoints that currently don't have it, proceed to the next section of this article.

  • If you're a Datto EDR or Datto AV customer seeking to enable AV protection on one or more endpoints where the Endpoint Security agent is present, you do not need to redeploy any software. Refer to our Working with the Policies page article.

System requirements

  • Windows Server 2012 R2 or greater
  • Domain Administrator account
  • Microsoft Windows endpoint
  • install_agent.bat download from our Github page
  • Optional: A registration key to assign your agents to a location and automatically authorize them

Create the batch file

  1. Navigate to our Github example Install Agent bat file and copy the code to a text editor.

  2. Save the file as install_agent.bat.

    IMPORTANT  If you use Notepad, ensure that it doesn't save the file as install_agent.bat.txt.

  3. Open the file in a text editor and set the instancename value to your instance name. For example, if you log in to alpha.infocyte.com, then your instancename should be set to alpha, as shown below.

  4. set instancename=alpha
  5. If you have a registration key, you can use the regkey variable. If you are not planning on using a registration key, you can leave it blank (not recommended). For more information, refer to Assigning agents to a location.

    set regkey=myregkey123
  6. Save the .bat file in your \\domainname\sysvol\domainname\scripts directory or in a shared folder to which all devices have access.

Create the GPO file

  1. In Windows Server, navigate to Server Manager > Tools > Group Policy Management.

  2. From the Group Policy Management Console, select your domain and click Group Policy Objects.

  3. Right-click Group Policy Objects and select New.

  4. In the Name field, enter Install HUNT Agent and click OK.

  5. Right-click the new GPO and click Edit.

  6. In the Group Policy Management Editor window, click Computer Configuration > Policies > Windows Settings > Scripts. Then, double-click Startup.

  7. On the Scripts tab of the Startup Properties box, and click Show Files.

  8. Click Add

  9. Click Browse and select the file install_agent.bat.

  10. Click OK.

  11. Find the domain or OU that you wish to link to the newly created GPO.

  12. Right-click it and select Link an Existing GPO.

  13. Click OK. Your script should now run and install the agent on all machines in the selected group. 

Wrapping up

If this agent deployment is for or will include Datto AV service, proceed to our Working with the Policies page article to continue.