I want to get underlying machine OS info along with its other details in C# .NET Code.
When ran the below code on Windows 10 Pro machine, it returns the wrong value as "Windows 10 Enterprise".
Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductName", "").ToString();
Is there any other key to be queried on Registry? Else it has manually interpreted through its minor & major version details?