From 93c4679c4655fab382a7815a47bc93355df671c9 Mon Sep 17 00:00:00 2001 From: rbalsleyMSFT <53497092+rbalsleyMSFT@users.noreply.github.com> Date: Mon, 17 Nov 2025 17:53:51 -0800 Subject: [PATCH] Removes Surface-specific validation for Microsoft devices Allows driver mapping to support all Microsoft-branded devices, not just Surface products. Previously, the code rejected any Microsoft device that didn't match "Surface" in the model name. This restriction prevented proper driver mapping for other Microsoft hardware. Updates log messages to use generic "Microsoft model" terminology instead of "Surface" to reflect the broader device support. --- FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 b/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 index cef34f7..88d994e 100644 --- a/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 +++ b/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 @@ -567,18 +567,14 @@ function Find-DriverMappingRule { return $null } 'Microsoft' { - if (-not [regex]::IsMatch($SystemInformation.Model, 'Surface', 'IgnoreCase')) { - WriteLog "DriverMapping: Manufacturer Microsoft detected but model '$($SystemInformation.Model)' is not a Surface device." - return $null - } foreach ($rule in $rulesForMake) { $ruleModelNorm = ConvertTo-ComparableModelName -Text $rule.Model if (-not [string]::IsNullOrWhiteSpace($ruleModelNorm) -and $ruleModelNorm -eq $normalizedModel) { - WriteLog "DriverMapping: Surface model '$normalizedModel' matched '$($rule.Model)'." + WriteLog "DriverMapping: Microsoft model '$normalizedModel' matched '$($rule.Model)'." return $rule } } - WriteLog 'DriverMapping: No Surface model match found in mapping.' + WriteLog 'DriverMapping: Microsoft model not present in mapping.' return $null } 'Panasonic Corporation' {