Home > Software engineering >  How can I identify different Window's Editions in Windows 11 without using the ProductName regi
How can I identify different Window's Editions in Windows 11 without using the ProductName regi

Time:01-28

I've been working on detecting Windows 11 machines, which I have successfully done by looking at the CurrentBuild registry value for anything above the build 22000 . However, when it comes to determining Windows 11 editions such as Home, Pro, Enterprise, etc. the only thing I can think of is parsing the ProductName registry value and looking for key words that correspond to the Windows 11 editions. I have tried to look through the Registry to find anything resembling 'Windows 11 Home/Pro/Enterprise' but I have not been able to find anything. Has anyone been able to find a registry value that corresponds to the edition other than in the way I'm currently doing?

CodePudding user response:

From code, you can make use of GetProductInfo assuming you have the proper manifest in your EXE.

Alternatively, look at the WMI API using OperatingSystemSKU in Win32_OperatingSystem.

  • Related