Hi Team,
We have several bugs related to 'guest-get-osinfo' command in Windows Guest Agent:
This command returns the following data:
{
"name": "Microsoft Windows",
"kernel-release": "20344",
"version": "N/A",
"variant": "server",
"pretty-name": "Windows Server 2022 Datacenter",
"version-id": "N/A",
"variant-id": "server",
"kernel-version": "10.0",
"machine": "x86_64",
"id": "mswindows"
}
This solution has several problems:
need to update the conversion matrix for each Windows build, one
Windows name can have different build numbers. For example, Windows
Server 2022 (preview) build number is 20344, Windows Server 2022 build number is 20348.
There are two possible solutions:
2. We can read this string from the registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion). Known implementation issues: ProductName value is localized (in a Russian version of Windows, the word "Microsoft' is translated), so we should ignore it. ReleaseId value does not equal to
Windows Server version (for Windows Server 2019, ReleaseId is 1809)
In conclusion, I have the next questions:
What solution we should implement to get the Windows release name?
Does someone know how end-users use this information? Should it be English only or it can be localized? Should we have exactly the same output as now?
What should we do with the 'Standard' server edition? Currently, the guest agent always returns 'Datacenter'.
Best wishes,
Kostiantyn Kostiuk