Search code examples
c#.netwindowsautopilot

Registry edition values of Windows 10?


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:

  1. Windows 10 Pro
  2. Windows 10 Pro for Workstations
  3. Windows 10 Education
  4. Windows 10 Pro Education
  5. Windows 10 Enterprise
  6. Windows 10 Enterprise 2019 LTS/LTSC/LTSB
  7. Windows 10 Home

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.


Solution

  • 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.

    • Windows 10 Pro - Professional
    • Windows 10 Pro for Workstations - ProfessionalWorkstation
    • Windows 10 Education - Education
    • Windows 10 Pro Education - ProfessionalEducation
    • Windows 10 Enterprise - Enterprise
    • Windows 10 Enterprise 2019 LTS/LTSC/LTSB - EnterpriseS
    • Windows 10 Home - Home