From 00a27fc4a884c8a8a80b19d852053df915033eef Mon Sep 17 00:00:00 2001 From: rbalsleyMSFT <53497092+rbalsleyMSFT@users.noreply.github.com> Date: Thu, 29 May 2025 20:09:22 -0700 Subject: [PATCH] Enhance MSRT handling for Windows installations by differentiating between client and LTSB/LTSC types --- FFUDevelopment/BuildFFUVM.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/FFUDevelopment/BuildFFUVM.ps1 b/FFUDevelopment/BuildFFUVM.ps1 index f598c6b..0294f19 100644 --- a/FFUDevelopment/BuildFFUVM.ps1 +++ b/FFUDevelopment/BuildFFUVM.ps1 @@ -4316,9 +4316,13 @@ if ($InstallApps) { if (-Not $MSRTDownloaded) { # Create the search string for MSRT based on Windows architecture and release if ($WindowsArch -eq 'x64') { - if ($installationType -eq 'client') { + if ($installationType -eq 'client' -and $isLTSC -eq $false) { $Name = """Windows Malicious Software Removal Tool x64""" + " " + """Windows $WindowsRelease""" } + # Handle LTSB/LTSC + elseif ($installationType -eq 'client' -and $isLTSC -eq $true){ + $Name = """Windows Malicious Software Removal Tool x64""" + " " + """LTSB""" + } #Windows Server 2025 isn't listed as a product in the Microsoft Update Catalog, so we'll use the 2019 version elseif ($installationType -eq 'server' -and $WindowsRelease -eq '24H2') { $Name = """Windows Malicious Software Removal Tool x64""" + " " + """Windows Server 2019"""