private/Tests/Test-IsWindows1125H2.ps1

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

    [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 '26200')
}