How to Install/Uninstall/Migrate UEMS agents using GPO light-weight tool?

Windows GPO is a powerful and versatile tool. UEMS agent can be installed, uninstalled or migrated using the GPO light-weight tool.

Advantages:

  • The GPO Lightweight Tool is a simple and user-friendly tool for configuring Group Policy Objects (GPO) to deploy agent installations, whether through startup processes or scheduled tasks.
  • It also allows to uninstall/ re-install agents through GPO without complexity on configuring the GPO.

Disadvantages:

  • The disadvantages of the GPO startup script and scheduled task methods are inherited.
Note:
  • The GPO lightweight tool only supports .EXE files and does not support .MSI files.
  • Kindly use account with Domain Admin credentials .

Follow the steps given below to create a Group policy and link it with OUs and Domains:

Steps:

1. Select the account details

    • Open the Domain Controller of the required AD in which the GPO needs to be configured.
    • To download the GPO tool click here.  
    • Execute the Tool As an administrator
    • Select "Continue with above details" and click next.
GPO1
    • If you encounter an error in fetching the domain or domain controller name or if you would like to execute the tool from another machine instead of the domain controller machine, select the enter details manually option. Kindly use account with domain admin credentials privilege.
    GPO2

To get the domain or OU Distinguished name, follow these steps:

    • Under Administrative tools, open the active directory users and computers.
GPO3
    • Under View, enable Advanced Features.
GPO4
    • Right click on the OU / Domain and Select Properties -> Attribute Editor -> distinguishedName -> View
GPO5

 

2. Choose the required action

    • Select the required action ( Installation \ Uninstallation \Migration)
GPO6

For the agent installer EXE, follow these steps:

    • Open the server web console.
    • Navigate to Agent -> Computers
    • Select the required remote office
    • Click Download Agent and add the downloaded file in the tool.
GPO7

Note: For agent uninstallation and migration use the AgentCleanupToolClient.exe. Follow the steps given in this document to generate the Cleanup tool.

3. Choose the Policy details

    • Enter the Name of the GPO [eg : MEECAgentInstall ] -> Enter the policy type [Startup or scheduler ] -> Select the Script type [powershell script is always recommended]
GPO8

 

4. Link the GPO

    • To apply policy to entire domain, select "Entire Domain".
    • To apply the policy to a specific OU , enter the OU distinguished names and click next. (To obtain the OU distinguished name, refer to the first step.)
GPO9

5. Confirm the details

    • Confirm the policy details and click next
    • The policy has been successfully created
GPO10

Note: If the start up policy is configured, restart the endpoints and check the status and if the scheduler policy is created it will be applied in the endpoints within 90 mins.

To test the policy in a machine Immediately after creation, follow the steps below:

    • Open the client machine -> Command prompt as an admin and execute the command gpupdate /force
GPO11
    • Once the policy update is completed restart the machine if the "Start-up" policy is configured.
    • For "Immediate Task" policy will be applied once the policy update is completed.
Listed below are a few possible issues that can be encountered during agent installation, and resolution steps for the same.