How can you detect the edition in Windows 7 (or later versions) in .NET?
In IIS, Windows Authentication is not an option (under Authentication for a site) for Home Premium, but it is for Ultimate. So I'm needing to check the edition so I know when to use Basic Authentication for a website. The code below allows you to detect the OS version. Can the edition be detected by this object? Or is there a different command I should be using?
OperatingSystem osversion = System.Environment.OSVersion;
Versions for Windows:
Detect Windows version in .net
I found this article, but I'm trying to wrap my head around the C++ parts.