Fix HP Driver Windows Version case sensitivity

This commit is contained in:
HedgeComp
2025-01-08 13:16:08 -05:00
committed by GitHub
parent ce7af09f25
commit 4709177bc3
+3 -1
View File
@@ -1003,7 +1003,9 @@ function Get-HPDrivers {
$Arch = $WindowsArch -replace "^x", "" $Arch = $WindowsArch -replace "^x", ""
# Construct the URL to download the driver XML cab for the model # Construct the URL to download the driver XML cab for the model
$ModelRelease = $SystemID + "_$Arch" + "_$WindowsRelease" + ".0.$WindowsVersion" # The HPcloud reference site is case sensitve so we must convert the Windowsversion to lower 'h' first
$WindowsVersionHP = $WindowsVersion -replace 'H', 'h'
$ModelRelease = $SystemID + "_$Arch" + "_$WindowsRelease" + ".0.$WindowsVersionHP"
$DriverCabUrl = "https://hpia.hpcloud.hp.com/ref/$SystemID/$ModelRelease.cab" $DriverCabUrl = "https://hpia.hpcloud.hp.com/ref/$SystemID/$ModelRelease.cab"
$DriverCabFile = "$DriversFolder\$ModelRelease.cab" $DriverCabFile = "$DriversFolder\$ModelRelease.cab"
$DriverXmlFile = "$DriversFolder\$ModelRelease.xml" $DriverXmlFile = "$DriversFolder\$ModelRelease.xml"