Forum Discussion
TParkUK
Oct 05, 2021Copper Contributor
Windows 11 Registry Still reports Windows 10 as OS Name
Hi All, Just to bring something to up just a minor bug but might confuse a few users as I know Some Applications use the Registry to report the OS Version but, the registry still reports as Windo...
rmangin
Nov 17, 2022Copper Contributor
Don't get your answer... when you say intentional: is there an official documentation, a deprecated statement, a replacement key? how customers are supposed to rely on these values if the logic breaks suddenly?
Are we really supposed to code ourselves as explained here based on the version >= 22000 https://stackoverflow.com/questions/69460588/how-can-i-find-the-windows-product-name-in-windows-11 ?
Problem is that now this situation is no longer a beta but a productive case at customers.
// os = "Windows 10 Enterprise" at this point
if (Environment.OSVersion.Version.Build >= 22000)
{
// Windows 11 case declared as Windows 10.
os = os.Replace("10", "11");
}
abbodi1406
Nov 18, 2022Iron Contributor
There are nothing official, but for compatibility requirements
https://learn.microsoft.com/en-us/answers/questions/555857/windows-11-product-name-in-registry.html?page=2&pageSize=10&sort=oldest
as the stackoverflow answers explain, you can use WMI Win32_OperatingSystem or winbrand.dll BrandingFormatString
https://learn.microsoft.com/en-us/answers/questions/555857/windows-11-product-name-in-registry.html?page=2&pageSize=10&sort=oldest
as the stackoverflow answers explain, you can use WMI Win32_OperatingSystem or winbrand.dll BrandingFormatString