fusioninventory / fusioninventory-agent

FusionInventory Agent
http://fusioninventory.org/
GNU General Public License v2.0
251 stars 125 forks source link

where the agent configuration is stored? #981

Closed MaximAl065 closed 1 week ago

MaximAl065 commented 2 years ago

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.

ddurieux commented 2 years ago

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

MaximAl065 commented 2 years ago

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?

guillomovitch commented 2 years ago

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

MaximAl065 commented 2 years ago

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 commented 2 years ago

Up

ddurieux commented 2 years ago

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

C-Duv commented 2 years ago

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.