Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCS Agent dectectinf Windows 10 as Windows 8 #278

Open
fgendorf opened this issue Sep 4, 2023 · 1 comment
Open

OCS Agent dectectinf Windows 10 as Windows 8 #278

fgendorf opened this issue Sep 4, 2023 · 1 comment

Comments

@fgendorf
Copy link

fgendorf commented Sep 4, 2023

Reference issue #232

General information

Operating system : Windows 10 10.0.19044

OCS Inventory information

Windows agent version : 2.10.1.0

Problem's description

Sometimes the OCS agent send to server the information that Windows 10 are a Windows 8.... I checked and I can see WMI are OK, but the machine was on lockscreen on monitor and another user accessing trough RDC.

@steffmeister
Copy link

steffmeister commented Aug 21, 2024

We also have this problem.

My five-minute-analysis (please correct me if I am wrong):
It seems the OCS windows agent uses dtwinver (http://www.naughter.com/dtwinver.html) to detect the OS: https://github.com/OCSInventory-NG/WindowsAgent/blob/master/SysInfo/Dtwinver.cpp - but as you can see here this is from April 2019 (a time where Win10 1903 was current).
So I guess the dtwinver version in OCS agent has to be updated? Or why not read the version from registry or other sources which require no 3rd party library?

Edit:
Ok it seems OCS agent trys to first use WMI and then falls back to dtwinver: https://github.com/OCSInventory-NG/WindowsAgent/blob/master/SysInfo/SysInfo.cpp#L73
So I suppose this is a WMI issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants