-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[RFC] winver.exe
output as platform version for windows hosts
#1503
Comments
According to this page, it seems that However, if I remember correctly, this version information cannot be obtained from WMI or other sources. Therefore, we use Also, even if we could get the Version, it does not seem appropriate to change this value now. It seems to me that you would need to raise a major version. |
Do you mean that 22H2 cannot be obtained or what exactly cannot be obtained as "Version"? I have linked a reference implementation in my first post which obtains 22H2 from the registry. Tho I don't know much of Windows internals to evaluate if the solution works for all cases as intended (especially requiring some special permissions to read the registry), but at least it did work on my Windows machine. |
Ah, I see that However, since Windows 7 is no longer supported by golang from golang 1.21, it may be a good idea to change But as I said, this changes may break some compatibility. So I also want to request comments about this change. Possible options:
|
Is your feature request related to a problem? Please describe.
Both strings:
kernel version
andplatform version
contain the exact same string.It might make sense to change the
platform version
to the string that is output bywinver.exe
which looks like this:
Version 22H2 (Build 22621.1992)
Reference implementation: https://github.com/jxsl13/osfacts/blob/master/distro/distro_windows.go#L51
Output
The text was updated successfully, but these errors were encountered: