Environment.OS.VersionString
outputs Microsoft Windows NT 6.3.9600.0
. According to Microsoft documentation, Windows 10's version number is 10.0
, so why does VB.NET recognise Windows 10 as Windows 8.1?systeminfo | findstr /C:'OS'
in Command Prompt and it returned the correct value of 10.0.10240 N/A Build 10240
under 'OS Version'.CurrentVersion
from HKLMSOFTWAREMicrosoftWindows NTCurrentVersion
and, as has already been said, that entry doesn't get updated change with Windows updates.CurrentMajorVersionNumber
, CurrentMinorVersionNumber
and CurrentBuildNumber
, in the same key.