CurrentVersion value in registry for each windows operating system
Asked Answered
A

5

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?

Albanese answered 1/2, 2013 at 14:47 Comment(2)
That's for win2k and above: msdn.microsoft.com/en-us/library/windows/desktop/…. Are you really going to support win98?Bilestone
thanks a lot. Its fine if I dont get it for windows 98.Albanese
A
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.

Albanese answered 5/2, 2013 at 7:17 Comment(5)
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: https://mcmap.net/q/104722/-reliable-way-to-get-windows-version-from-registry/87698Caisson
Does anybody know the CurrentMajor/MinorVersionNumber pair for the Windows 10 november update?Davedaveda
@Davedaveda Kind of late, but the version number is always 10.0 for Windows 10. Major updates are identified by their version number which you can find in the "ReleaseId" value: The "November update" is release 1511.Cibis
@Max Truxa releaseid no longer works for 21h1, instead displayversion is now used. which doesn't exist for older versionsJeniferjeniffer
@Jeniferjeniffer Well that sucks. Thanks for the info.Cibis
B
2

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

Bobwhite answered 1/2, 2013 at 17:9 Comment(0)
W
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....

Whoredom answered 4/11, 2013 at 22:11 Comment(0)
H
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
Hour answered 26/3, 2015 at 16:10 Comment(0)
G
1

Just checked Windows 10 Pro and it is version 6.3

Geotectonic answered 2/10, 2015 at 15:14 Comment(2)
this is wrong. Windows 8.1 is internally 6.3. Windows 10 is 10.0 and early Preview builds were 6.4.Kakalina
Win 10+ has a new key for tracking the version. You should use Reg Query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentMajorVersionNumberand Reg Query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentMinorVersionNumber.Glairy

© 2022 - 2024 — McMap. All rights reserved.