Skip to main content
Version: 8.4

Agent Bulk Installation Using GPO

What is a Group Policy?

A group policy contains configurations that help the network administrators to control the environment of Active Directory users and computers.

What is a Group Policy Object?

Group Policy Objects (GPOs) are a group of policy settings based on which certain actions can be enforced on all users and computers in the Active Directory Domain. Using this you can deploy software packages for multiple users, thus saving time and money.

Microsoft provides a simple way to deploy software and also a quick solution to uninstall it when needed.

For example: If you want to install agents in bulk for all the users and computers, you can create a GPO policy.

Configuring the Group Policy Object

To create a Group Policy Object, follow the below steps:

note

To apply a Group Policy, either Domain or Local administrator rights are required.

  1. Open the Server Manager from the menu and navigate to Tools > Group Policy Management.

Server Manager

  1. Expand the Domains tree, select the desired domain, right-click, and select the option Create a GPO in this domain and Link it here.

Group Policy Management

The following popup appears.

  1. Create a new GPO policy by entering the name and clicking OK.

Create a new GPO Policy

  1. Right-click the created policy (Install Using GPO) and select Edit.

Edit GPO Policy

  1. In the Group Policy Management Editor, navigate to Computer Configuration > Policies > Software Settings > Software Installation. In the right pane, right-click and select New > Package.

Create a new Package

A dialog appears. Select the pre-defined agent setup file and click Open.

Select the Agent setup file

note
  • To get the pre-defined agent setup file, contact the Motadata Support or Implementation team.
  • This file must be publicly accessible from the target machine.

The agent file gets added.

  1. Next, navigate to Computer Configuration > Policies > Software Settings > Software Installation, right-click, and select Properties.

Group Policy Management Editor

  1. In the Software Installation Properties window, select the General tab, browse, and select the default package location. Also, select the options: Assign and Basic, as shown below.

Software Installation Properties > General tab

note

The shared folder path given in the Default Package Location must be publicly accessible from the target machines.

Once done, click OK, and select the Advanced tab.

  1. In the Advanced tab, enable the option Uninstall the applications when they fall out of the scope of management..

Software Installation Properties > Advanced tab

Once done, click OK, and set the properties of the agent.

  1. Right-click on the agent and select Properties.

Select Properties of Agent

  1. In the Properties window, select the Deployment tab, click Advanced, and enable the option Ignore language when deploying this package.

Deployment tab

Advanced Deployment Options

Once done, click OK, and your GPO policy is created.

  1. Once the GPO policy is created, the Software Installation process begins when a system restarts, or you can start it manually by typing the following command in the CMD of a node.

gpupdate /force

In ServiceOps, the agents installed using this policy will appear on the Hardware Assets list page and the Discovery Agent tab of Admin > Asset Management > Asset Discovery, respectively.

note

In case of failure in installation, change the rules, and make the changes. To do so, Open Group Policy Management and change the below configurations:

  • In the Computer Configuration > Policies > Administrative Templates > System > Group Policy, enable the option Specify startup policy processing wait time. Set the Amount of time to wait (in seconds) as 600. It is the approximate average time taken to install the agent on the target machine. You can increase it if the target machine is slower or, due to latency in the network, the agent is not installed.

Enable the Group Policy Setting

  • In the Computer Configuration > Policies > Administrative Templates > System > Logon, enable the parameter Always wait for the network at computer startup and logon.

Enable the Logon Policy Setting