private/Tests/Test-IsWindows1126H1.ps1

function Test-IsWindows1126H1 {
    <#
    .SYNOPSIS
        Returns $true when the current operating system is Windows 11 26H1
        (OS build 26800).
 
    .NOTES
        Author: David Segura
        Company: Recast Software
        Windows 11 26H1 shipped on OS build 26800. This check is intentionally
        broad — it matches any 26800.x update revision.
 
    Dependencies: None
    #>

    [OutputType([bool])]
    param ()

    $os = Get-CimInstance -ClassName Win32_OperatingSystem -ErrorAction SilentlyContinue
    return ($null -ne $os -and $os.Caption -like '*Windows 11*' -and $os.BuildNumber -eq '26800')
}