I want to obtain Windows 10 OS edition from registry. I'm reading below registry key using C# code to get it:
SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionID
Here is the C# code:
using (var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion"))
{
if (key != null)
{
var keyValue = key.GetValue("EditionID");
var osEdition = keyValue.ToString();
}
}
I need to know the strings that'll be present in the EditionID key for various editions of Windows 10. I couldn't get any relevant Microsoft documentation around it. Major Windows 10 editions are as below:
I've an Enterprise
edition Windows 10 OS on my PC. So I know that for Enterprise
edition this registry values comes as Enterprise
. I need to know the rest.
I've been able to obtain some of them. Please feel free to edit this post if you find anyone installed in your office, school or home.