From 7dd002396fc8a9e4b6d84a7f56e7b3fd6b5574c7 Mon Sep 17 00:00:00 2001 From: rbalsleyMSFT <53497092+rbalsleyMSFT@users.noreply.github.com> Date: Thu, 23 Oct 2025 12:27:46 -0700 Subject: [PATCH] Normalizes model display in Get-DellClientModels to prevent duplicate brand names in output. --- .../FFU.Common/FFU.Common.Drivers.Dell.psm1 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/FFUDevelopment/FFU.Common/FFU.Common.Drivers.Dell.psm1 b/FFUDevelopment/FFU.Common/FFU.Common.Drivers.Dell.psm1 index 75b8c99..b676054 100644 --- a/FFUDevelopment/FFU.Common/FFU.Common.Drivers.Dell.psm1 +++ b/FFUDevelopment/FFU.Common/FFU.Common.Drivers.Dell.psm1 @@ -90,7 +90,20 @@ function Get-DellClientModels { $pathAttr = $manifestInfo.GetAttribute('path') if (-not $pathAttr) { continue } $cabUrl = 'https://downloads.dell.com/' + $pathAttr - $modelDisplay = "$brandDisplay $modelNumber ($systemId)" + # Normalize model display to avoid duplicate brand (e.g. Latitude Latitude 13 (0432)) + $prefixedModelNumber = $modelNumber + if ($modelNumber -and $brandDisplay) { + if ($modelNumber.StartsWith($brandDisplay,[System.StringComparison]::OrdinalIgnoreCase)) { + $prefixedModelNumber = $modelNumber + } + else { + $prefixedModelNumber = "$brandDisplay $modelNumber" + } + } + elseif ($brandDisplay -and -not $modelNumber) { + $prefixedModelNumber = $brandDisplay + } + $modelDisplay = "$prefixedModelNumber ($systemId)" $models.Add([pscustomobject]@{ Brand = $brandDisplay ModelNumber = $modelNumber