Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Agents in Windows read and send the incorrect registry data

I want OCS Server to show the default printer in Windows 7. That depends on the user who has logged on in Window. OCS is configured to obtain this data from the Windows Registry:

REGTREE: HKEY_CURRENT_USER
REGKEY: Software\Microsoft\Windows NT\CurrentVersion\Windows
REGVALUE: Device

I don't know why some agents fail and reads this other key:
HKEY_USERS\.DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\Windows

The key .DEFAULT (or S-1-5-18) corresponds to Local System user. If I change the account of the "OCS Inventory Service" to a normal account in services.msc, tab "Log On", then the agent sends the correct data.

Why do some computers send the correct data but others not?

in OCS Inventory NG agent for Windows by (160 points)

1 Answer

0 votes
Hi

OCS Windows Agent use local system user to inventory the machine because it must have admin rights to do this. When no user is logged "local system" user is used. So this is normal.

Regards

Frank
by (90.4k points)
Thanks for your answer. I log as a normal user, reinstall agent, and force inventory. I think agent should read the HKCU of that user, not "local system". It works only on some machines.
 
Powered by Question2Answer
...