For Win 10 and 11 "major.minor" is 10.0 for all existing versions. Only the "build" numbers differ. The following Map associates the build numbers with Microsoft's version names:The version number of the operating system, in the format "major.minor.build". For example, Windows 7 SP1 is 6.1.7601.
Code: Select all
Win_10_11_Builds := Map(10240, "Win 10 1507",
10586, "Win 10 1511",
14393, "Win 10 1607",
15063, "Win 10 1703",
16299, "Win 10 1709",
17134, "Win 10 1803",
17763, "Win 10 1809",
18362, "Win 10 1903",
18363, "Win 10 1909",
19041, "Win 10 2004",
19042, "Win 10 20H2",
19043, "Win 10 21H1",
19044, "Win 10 21H2",
19045, "Win 10 22H2",
22000, "Win 11 21H2",
22621, "Win 11 22H2",
22631, "Win 11 23H2")