I would like to know if there is a possibility other than from registry to find the OS edition. I don't mean version like Win7, 10, etc., but Home, Professional, Enterprise, etc.
Even when I find it in the registry there is "Enterprise" on Pro version of Windows 10.
I just need to know how to achieve that on Windows 10.
I found this article:
Detect Windows version in .net
But I dont see an option for Environment.OSVersion
to return edition of windows.
Is it maybe possible through WMI?