Deploying agents through Group Policy
You can centrally install (or deploy) Agent for Windows onto machines that are members of an Active Directory domain, by using Group Policy.
In this section, you will find out how to set up a Group Policy object to deploy agents onto machines in an entire domain or in its organizational unit.
Every time a machine logs on to the domain, the resulting Group Policy object will ensure that the agent is installed and registered.
Prerequisites
Before proceeding with agent deployment, ensure that:
- You have an Active Directory domain with a domain controller running Microsoft Windows Server 2003 or later.
- You are a member of the Domain Admins group in the domain.
- You have downloaded the All agents for Windows setup program. The download link is available on the Add devices page in the service console.
Step 1: Generating a registration token
A registration token passes your identity to the setup program without storing your login and password for the service console. This enables you to register any number of machines under your account. For more security, a token has limited lifetime.
To generate a registration token
- Sign in to the service console by using the credentials of the account to which the machines should be assigned.
- Click All devices > Add.
- Scroll down to Registration token, and then click Generate.
- Specify the token lifetime, and then click Generate token.
-
Copy the token or write it down. Be sure to save the token if you need it for further use.
You can click Manage active tokens to view and manage the already generated tokens. Please be aware that for security reasons, this table does not display full token values.
Step 2: Creating the .mst transform and extracting the installation package
- Log on as an administrator on any machine in the domain.
- Create a shared folder that will contain the installation packages. Ensure that domain users can access the shared folder—for example, by leaving the default sharing settings for Everyone.
- Start the setup program.
- Click Create .mst and .msi files for unattended installation.
-
Click Specify next to Registration settings, and then enter the token you generated.
You can change the method of registering the machine in the Cyber Protection service from Use registration token (default) to Use credentials or Skip registration. The Skip registration option presumes that you will register the machine at a later time.
- Review or modify the installation settings that will be added to the .mst file, and then click Proceed.
- In Save the files to, specify the path to the folder you created.
- Click Generate.
As a result, the .mst transform is generated and the .msi and .cab installation packages are extracted to the folder you created.
Step 3: Setting up the Group Policy objects
- Log on to the domain controller as a domain administrator; if the domain has more than one domain controller, log on to any of them as a domain administrator.
- If you are planning to deploy the agent in an organizational unit, ensure that the organizational unit exists in the domain. Otherwise, skip this step.
- In the Start menu, point to Administrative Tools, and then click Active Directory Users and Computers (in Windows Server 2003) or Group Policy Management (in Windows Server 2008 or later).
-
In Windows Server 2003:
- Right-click the name of the domain or organizational unit, and then click Properties. In the dialog box, click the Group Policy tab, and then click New.
In Windows Server 2008 or later:
- Right-click the name of the domain or organizational unit, and then click Create a GPO in this domain, and Link it here.
- Name the new Group Policy object Agent for Windows.
-
Open the Agent for Windows Group Policy object for editing, as follows:
- In Windows Server 2003, click the Group Policy object, and then click Edit.
- In Windows Server 2008 or later, under Group Policy Objects, right-click the Group Policy object, and then click Edit.
- In the Group Policy object editor snap-in, expand Computer Configuration.
-
In Windows Server 2003 and Windows Server 2008:
- Expand Software Settings.
In Windows Server 2012 or later:
- Expand Policies > Software Settings.
- Right-click Software installation, then point to New, and then click Package.
- Select the agent's .msi installation package in the shared folder that you previously created, and then click Open.
- In the Deploy Software dialog box, click Advanced, and then click OK.
- On the Modifications tab, click Add, and then select the .mst transform that you previously created.
- Click OK to close the Deploy Software dialog box.