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.4 available

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

Where OCSInventory.exe looks to find the username?

I'm having an issue were if the user is not logged in to the computer when the OCSNG Agent runs, then the inventory doesn't show the username in the OCSNG web (see photo below). I'm trying to find a way to allow OCSInventory.exe to get to the username even when the user is not logged in. Could you tell me where the OCSInventory.exe looks for the username like in the registry etc.,?

Merci

Example of what is happening:

asked Dec 20, 2017 in OCS Inventory NG agent for Windows by james (680 points)

2 Answers

+1 vote
The username is get from logged user. If there is nobody logged, so ocs inventory show nobody and retrive no information.

There is no better way to do because in many case, you can have allready more than one user account (administrator and one simple user account for exemple) and there is no way to know who use the computer. In an Active Directory group, you can have 400 account able to connect on the computer too.
answered Dec 21, 2017 by kapouik (16,100 points)
0 votes

Hi @james and @kapouik,

Perhaps a solution: On Windows, the winusers plugin goes back to the name of user accounts already used on the machine (whether local or domain).

Regards, St├ęphane

answered Dec 27, 2017 by steph78630 (14,220 points)
 
Powered by Question2Answer
...