Using windows 10, upgraded from windows 8 => 8.1 => 10 When I use this code.
OperatingSystem os = System.Environment.OSVersion;
The os.Vers
Try:
new ComputerInfo().OSVersion;
Output:
Microsoft Windows 10 Enterprise
Note: Add reference to Microsoft.VisualBasic.Devices;
Thanks to https://stackoverflow.com/a/39888998/6629672