From fbe8eca26367c5b0a3eb2b7a8139f0f40ff8e03d Mon Sep 17 00:00:00 2001 From: JonasKloseBW Date: Wed, 2 Oct 2024 15:05:41 +0200 Subject: [PATCH] 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)) {