[KB6745] How to re-deploy ESET Management Agent over an existing password-protected Agent (Windows)

Issue

  • Reinstall ESET Management Agent over an existing ESET Management Agent that is protected by a known password

Solution

The only installer type that supports including the password is the Agent installer script. This solution only works for ESET Management Agent for Windows.

To create an installer that can override a password-protected agent, you have to create a new (or modify an existing) Live Installer script:

  1. Create an Agent script Installer, but do not deploy it on a computer yet.

  2. Extract files from the downloaded PROTECTAgentinstaller.zip.

  3. Open the PROTECTAgentinstaller.bat in a simple text editor like Notepad.

  4. Find the following lines:

    echo.P_PORT=2222 >> "%installConfigFile%"
    echo.P_INITIAL_STATIC_GROUP= >> "%installConfigFile%"
  5. Add the following line and change secret_123 to your ESET Management Agent password:

    echo.PASSWORD=secret_123 >> "%installConfigFile%"

    between the lines from the previous step:

    echo.P_PORT=2222 >> "%installConfigFile%"
    echo.PASSWORD=secret_123 >> "%installConfigFile%"
    echo.P_INITIAL_STATIC_GROUP= >> "%installConfigFile%"
  6. Save the changes in the file.

  7. Use this modified installer for the ESET Management Agent re-installation. Follow the installation steps in Deploy ESET Management Agent using Agent script Installer via ESET PROTECT or ESET PROTECT On-Prem.