11

I want to know CurrentVersion value for each operating system at

HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion"

For example: I have windows 7 professional installed on my machine and CurrentVersion value is 6.1.

Can any one list it down for all windows operating systems since Windows 98?

Ajinkya
  • 1,701
  • 4
  • 25
  • 42

5 Answers5

16

These are the required versions of windows operating systems:

Operating system              Version number
----------------------------  --------------
Windows 10                      10.0
Windows Server 2019             10.0
Windows Server 2016             10.0
Windows 8.1                     6.3
Windows Server 2012 R2          6.3
Windows 8                       6.2
Windows Server 2012             6.2
Windows 7                       6.1
Windows Server 2008 R2          6.1
Windows Server 2008             6.0
Windows Vista                   6.0
Windows Server 2003 R2          5.2
Windows Server 2003             5.2
Windows XP 64-Bit Edition       5.2
Windows XP                      5.1
Windows 2000                    5.0
Windows ME                      4.90
Windows 98                      4.10

If you want to know it by reading it from registry, you need to check the new CurrentMajor/MinorVersionNumber keys as well. The new values CurrentMajorVersionNumber (which is 10) and CurrentMinorVersionNumber (which is 0) under Windows 10. Those 2 keys are new in Windows 10 to detect Windows Version from Registry.

Ajinkya
  • 1,701
  • 4
  • 25
  • 42
  • 15
    Do note, though, that the registry key in question will contain "6.3" for Windows 10. You need to check the new "CurrentMajor/MinorVersionNumber" keys as well: http://stackoverflow.com/q/31072543/87698 – Heinzi Aug 08 '15 at 12:15
  • Does anybody know the CurrentMajor/MinorVersionNumber pair for the Windows 10 november update? – Sebastian Dec 17 '15 at 03:12
  • @Sebastian Kind of late, but the version number is always 10.0 for Windows 10. Major updates are identified by their [version number](https://www.microsoft.com/en-us/itpro/windows-10/release-information) which you can find in the "ReleaseId" value: The "November update" is release 1511. – Max Truxa Sep 26 '18 at 06:27
  • @Max Truxa releaseid no longer works for 21h1, instead displayversion is now used. which doesn't exist for older versions – az1d May 28 '21 at 07:36
  • @az1d Well that sucks. Thanks for the info. – Max Truxa May 28 '21 at 08:39
2

You should be using WinVer.nsh to check the Windows version...

Anders
  • 97,548
  • 12
  • 110
  • 164
1

You can also use the following key for more specific string details about the OS

Reg query "\hostname\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName

I've found to be present for Windows XP and aboeve....

1

updatable list located at MSDN : https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832.aspx

for now (March 2015) :

Operating system              Version number
----------------------------  --------------
Windows 10 Tech.Preview       10.0
Windows Server Techn.Preview  10.0
Windows 8.1                    6.3
Windows Server 2012 R2         6.3
Windows 8                      6.2
Windows Server 2012            6.2
Windows 7                      6.1
Windows Server 2008 R2         6.1
Windows Server 2008            6.0
Windows Vista                  6.0
Windows Server 2003 R2         5.2
Windows Server 2003            5.2
Windows XP 64-Bit Edition      5.2
Windows XP                     5.1
Windows 2000                   5.0
osterik
  • 46
  • 3
1

Just checked Windows 10 Pro and it is version 6.3

Phil B.
  • 19
  • 1
  • 1
    this is wrong. Windows 8.1 is internally 6.3. Windows 10 is 10.0 and early Preview builds were 6.4. – magicandre1981 Nov 18 '15 at 17:56
  • 2
    Win 10+ has a new key for tracking the version. You should use `Reg Query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentMajorVersionNumber`and `Reg Query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentMinorVersionNumber`. – Spiralis Jun 09 '16 at 03:34