fusioninventory-agent icon indicating copy to clipboard operation
fusioninventory-agent copied to clipboard

where the agent configuration is stored?

Open MaximAl065 opened this issue 3 years ago • 7 comments

Help me please. I'm looking for where the config is stored and can't find it. I take the agent installer (fusioninventory-agent_windows-x64_2.6.exe) and install it on the PC (Windows 10) disconnected from the network. I do the installation as a task, not as a service. The agent naturally cannot connect anywhere. Restarting the PC and starting the agent task for execution - the agent tries to establish a connection with the server specified during installation. Accordingly, the agent somewhere has a place where the configuration is stored. However, there is nothing in the registry or in the configuration file "c: \ Program Files \ FusionInventory-Agent \ etc \ agent.cfg" (there is not even the file itself, there is only a sample agent.cfg.sample). Searching the registry and files yielded nowhere. Please tell me where the agent stores the configuration.

MaximAl065 avatar Dec 27 '21 22:12 MaximAl065

On windows, it's in registry, HKLM/SOFTWARES/FusionInventory-agent

ddurieux avatar Dec 27 '21 22:12 ddurieux

No, not in the registry. As I understand it in the registry when installing the agent as a service. And where in the case of installing the agent as a task?

MaximAl065 avatar Dec 27 '21 23:12 MaximAl065

Default configuration backend for Windows is the registry, as explained here: http://fusioninventory.org/documentation/agent/configuration.html

guillomovitch avatar Dec 29 '21 18:12 guillomovitch

Default configuration backend for Windows is the registry, as explained here: http://fusioninventory.org/documentation/agent/configuration.html

Sorry, but can you install the agent on a new computer as a task and find its keys in the registry? Have you tried this? There are no keys in this type of installation. image

MaximAl065 avatar Dec 29 '21 21:12 MaximAl065

Up

MaximAl065 avatar Jan 21 '22 03:01 MaximAl065

OK, so seems when you install in task mode it not create the registry? I will test it

ddurieux avatar Jan 21 '22 07:01 ddurieux

I have task-installed agent v2.6 and configuration is indeed at HKEY_LOCAL_MACHINE\SOFTWARE\FusionInventory-Agent (just checked and it was also the case with version v2.3).

Note that agent was installed unattended using the Chocolatey package but I don't see how it could change the outcome.

C-Duv avatar Jun 25 '22 00:06 C-Duv