From fbe8eca26367c5b0a3eb2b7a8139f0f40ff8e03d Mon Sep 17 00:00:00 2001 From: JonasKloseBW Date: Wed, 2 Oct 2024 15:05:41 +0200 Subject: [PATCH 1/3] Update Search Strings: Update BuildFFUVM.ps1 - Update search strings for Windows / .NET Framework updates to get more consistent and reliable results --- FFUDevelopment/BuildFFUVM.ps1 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/FFUDevelopment/BuildFFUVM.ps1 b/FFUDevelopment/BuildFFUVM.ps1 index 3dcf517..b068b96 100644 --- a/FFUDevelopment/BuildFFUVM.ps1 +++ b/FFUDevelopment/BuildFFUVM.ps1 @@ -4166,7 +4166,7 @@ try { } elseif ($WindowsRelease -lt 2022) { $Name = """Cumulative update for Windows 10 Version $WindowsVersion for $WindowsArch""" } else { - $Name = """Cumulative update for Windows 11 Version $WindowsVersion for $WindowsArch""" + $Name = """Cumulative update for Windows 11 Version $WindowsVersion for $WindowsArch"" ""Security Updates""" } #Check if $KBPath exists, if not, create it If (-not (Test-Path -Path $KBPath)) { @@ -4206,10 +4206,14 @@ try { Writelog "`$UpdateLatestNet is set to true, checking for latest .NET Framework" if ($WindowsRelease -le 11) { $Name = "Cumulative update for .net framework windows $WindowsRelease $WindowsVersion $WindowsArch -preview" - } elseif ($WindowsRelease -le 2022) { - $Name = "Cumulative update for .net framework windows 10 $WindowsVersion for $WindowsArch -preview" + } elseif ($WindowsRelease -eq 2016) { + $Name = '"Cumulative Update for .NET Framework" "4.8" for Windows 10 Version ' + $WindowsVersion + ' x64 -preview' + } elseif ($WindowsRelease -eq 2019) { + $Name = '"Cumulative Update for .NET Framework" "3.5, 4.7.2 and 4.8" for Windows 10 Version ' + $WindowsVersion + ' x64 -preview' + } elseif ($WindowsRelease -eq 2022) { + $Name = '"Cumulative Update" ".NET Framework" "3.5, 4.8 and 4.8.1" "server operating system " ' + $WindowsVersion + ' x64 -preview' } else { - $Name = "Cumulative update for .net framework windows 11 $WindowsVersion for $WindowsArch -preview" + $Name = '"Cumulative Update for .NET Framework" "3.5 and 4.8.1" for Windows 11 ' + $WindowsVersion + ' x64 -preview' } #Check if $KBPath exists, if not, create it If (-not (Test-Path -Path $KBPath)) { From f09c404f65e805e6ca227c5190102cf69e77803b Mon Sep 17 00:00:00 2001 From: JonasKloseBW Date: Thu, 3 Oct 2024 03:47:33 +0200 Subject: [PATCH 2/3] Update BuildFFUVM.ps1 - Find better results for Windows Server 2019 .NET Framework updates --- FFUDevelopment/BuildFFUVM.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FFUDevelopment/BuildFFUVM.ps1 b/FFUDevelopment/BuildFFUVM.ps1 index b068b96..0fc53bc 100644 --- a/FFUDevelopment/BuildFFUVM.ps1 +++ b/FFUDevelopment/BuildFFUVM.ps1 @@ -4209,7 +4209,7 @@ try { } elseif ($WindowsRelease -eq 2016) { $Name = '"Cumulative Update for .NET Framework" "4.8" for Windows 10 Version ' + $WindowsVersion + ' x64 -preview' } elseif ($WindowsRelease -eq 2019) { - $Name = '"Cumulative Update for .NET Framework" "3.5, 4.7.2 and 4.8" for Windows 10 Version ' + $WindowsVersion + ' x64 -preview' + $Name = '"Cumulative Update for .NET Framework" "3.5, 4.7.2 and 4.8" Server ' + $WindowsRelease + ' x64 -preview' } elseif ($WindowsRelease -eq 2022) { $Name = '"Cumulative Update" ".NET Framework" "3.5, 4.8 and 4.8.1" "server operating system " ' + $WindowsVersion + ' x64 -preview' } else { From eae619e7e83976c26fadbab71c0bdba2c9d81569 Mon Sep 17 00:00:00 2001 From: JonasKloseBW Date: Mon, 4 Nov 2024 18:23:57 +0100 Subject: [PATCH 3/3] Update BuildFFUVM.ps1 - Fix update search for Windows Server 2025 release --- FFUDevelopment/BuildFFUVM.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FFUDevelopment/BuildFFUVM.ps1 b/FFUDevelopment/BuildFFUVM.ps1 index e4f1ae7..7ff37ad 100644 --- a/FFUDevelopment/BuildFFUVM.ps1 +++ b/FFUDevelopment/BuildFFUVM.ps1 @@ -4192,7 +4192,7 @@ try { $Name = """Cumulative update for Windows $WindowsRelease Version $WindowsVersion for $WindowsArch""" } if ($WindowsRelease -eq 2025) { - $Name = """Cumulative update for Windows 11 Version 24h2 for $WindowsArch"" ""Security Updates""" + $Name = """Cumulative Update for Microsoft server operating system, version 24h2 for $WindowsArch""" } if ($WindowsRelease -eq 2022) { $Name = """Cumulative Update for Microsoft server operating system, version 21h2 for $WindowsArch"""