How to install Discovery Agents unattended
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Assets Discovery agents can be installed either manually on each of the remote hosts and running the Agent setup in silent mode.
Here we will show how to install Discovery Agents in an unattended way.
Solution
When you run the Setup wizard, Setup is running in interactive mode. It uses a graphical user interface (GUI) that prompts you for the required information. Alternatively, you can run Setup in silent mode. When Setup runs in silent mode, no GUI is displayed.
Use the following procedure to run the installation by entering parameters at the command prompt.
Open a Command Prompt window.
At the command prompt, type the following command to display all the options
<Discovery_installation_path>\Discovery_Agent_Setup_x86.msi /?
One of the options for a silent install is:
start /wait msiexec -quiet -i <Discovery_installation_path>\Discovery_Agent_Setup.msi
Then run this command to configure the token:
"C:\Program Files\Atlassian\Discovery Agent\Discovery_Agent.exe" -token <token>