mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Enhance MSRT handling for Windows installations by differentiating between client and LTSB/LTSC types
This commit is contained in:
@@ -4316,9 +4316,13 @@ if ($InstallApps) {
|
|||||||
if (-Not $MSRTDownloaded) {
|
if (-Not $MSRTDownloaded) {
|
||||||
# Create the search string for MSRT based on Windows architecture and release
|
# Create the search string for MSRT based on Windows architecture and release
|
||||||
if ($WindowsArch -eq 'x64') {
|
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"""
|
$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
|
#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') {
|
elseif ($installationType -eq 'server' -and $WindowsRelease -eq '24H2') {
|
||||||
$Name = """Windows Malicious Software Removal Tool x64""" + " " + """Windows Server 2019"""
|
$Name = """Windows Malicious Software Removal Tool x64""" + " " + """Windows Server 2019"""
|
||||||
|
|||||||
Reference in New Issue
Block a user