Skip to content

Commit db008be

Browse files
BornToBeRootclaude
andcommitted
Feature: IP Scanner: Windows 11 26H2 (build 26300) and 26H1 (build 28000)
26H2 was shown as "Windows (build 26300)". 26H1 only ships on new devices with new chips (e.g. Snapdragon X2). The host info tests used 28000 as an unknown newer build, now 29000. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent fcedbf9 commit db008be

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎Source/NETworkManager.Models/Network/WindowsVersionHelper.cs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ public static class WindowsVersionHelper
3737
{ 22631, ("Windows 11 23H2", null) },
3838
{ 25398, (null, "Windows Server 23H2") },
3939
{ 26100, ("Windows 11 24H2", "Windows Server 2025") },
40-
{ 26200, ("Windows 11 25H2", null) }
40+
{ 26200, ("Windows 11 25H2", null) },
41+
{ 26300, ("Windows 11 26H2", null) },
42+
// Only on new devices with new chips (e.g. Snapdragon X2), existing PCs get 26H2
43+
{ 28000, ("Windows 11 26H1", null) }
4144
};
4245

4346
/// <summary>

‎Source/NETworkManager.Tests/Network/WindowsHostInfoTests.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,22 +132,22 @@ public void Registry_PatchLevelAndEdition()
132132
[Fact]
133133
public void Registry_NewerBuild_DisplayVersion()
134134
{
135-
var registry = new WindowsRegistryVersion(new Version(10, 0, 28000, 1), "26H2", "Enterprise", false);
135+
var registry = new WindowsRegistryVersion(new Version(10, 0, 29000, 1), "27H2", "Enterprise", false);
136136

137137
var info = new WindowsHostInfo(null, CreateNetApi(WindowsHostRole.Workstation, registry));
138138

139-
Assert.Equal("Windows 11 26H2", info.OS);
139+
Assert.Equal("Windows 11 27H2", info.OS);
140140
}
141141

142142
[Fact]
143143
public void Registry_NewerServerBuild_KeepsTheBuild()
144144
{
145145
// The display version of a server doesn't name the release (no client-like "Windows 25H2")
146-
var registry = new WindowsRegistryVersion(new Version(10, 0, 28000, 1), "25H2", "ServerStandard", true);
146+
var registry = new WindowsRegistryVersion(new Version(10, 0, 29000, 1), "25H2", "ServerStandard", true);
147147

148148
var info = new WindowsHostInfo(null, CreateNetApi(WindowsHostRole.Server, registry));
149149

150-
Assert.Equal("Windows (build 28000)", info.OS);
150+
Assert.Equal("Windows (build 29000)", info.OS);
151151
}
152152

153153
[Fact]

‎Source/NETworkManager.Tests/Network/WindowsVersionHelperTests.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ namespace NETworkManager.Tests.Network;
77
public class WindowsVersionHelperTests
88
{
99
[Theory]
10+
[InlineData("10.0.28000", null, "Windows 11 26H1")]
11+
[InlineData("10.0.26300", null, "Windows 11 26H2")]
1012
[InlineData("10.0.26200", null, "Windows 11 25H2")]
1113
[InlineData("10.0.26100", null, "Windows 11 24H2 / Server 2025")]
1214
[InlineData("10.0.26100", true, "Windows Server 2025")]

0 commit comments

Comments
 (0)