0

I would like to know if it is possible to find the edition of Windows using C# and then checking it as simple text. For example :

check windows edition
check if it is "professional", "home", "enterprise" etc

My current code is

 using (RegistryKey key = Registry.LocalMachine.OpenSubKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\EditionID"))
            {
                
            }

I just don't know what to do next.

Thank you!

Stacknoob
  • 3
  • 2
  • You might find some of the answers to [Detect Windows version in .NET](https://stackoverflow.com/questions/2819934/detect-windows-version-in-net) to be more useful than the suggested duplicate. – Andrew Morton May 21 '22 at 14:30

0 Answers0