in providers/windows/os_windows.go [103:115]
func fixWindows11Naming(currentBuild string, osInfo *types.OSInfo) {
buildNumber, err := strconv.Atoi(currentBuild)
if err != nil {
return
}
// "Anything above [or equal] 10.0.22000.0 is Win 11. Anything below is Win 10."
if osInfo.Major > 10 ||
osInfo.Major == 10 && osInfo.Minor > 0 ||
osInfo.Major == 10 && osInfo.Minor == 0 && buildNumber >= 22000 {
osInfo.Name = strings.Replace(osInfo.Name, "Windows 10", "Windows 11", 1)
}
}