MSEndpointMgr / ConfigMgr

Microsoft Endpoint Configuration Manager scripts and tools
633 stars 281 forks source link

Invoke-CMDownloadBIOSPackage.ps1 Some Dell models have spaces at the end of the model name in BIOS #123

Closed vorlon77 closed 5 years ago

vorlon77 commented 5 years ago

Some Dell models with some BIOS versions have trailing spaces at the end of the model name. Invoke-CMDownloadBIOSPackage.ps1 function Compare-BIOSVersion change:

$ComputerModel = Get-WmiObject -Class Win32_ComputerSystem | Select-Object -ExpandProperty Model

to

$ComputerModel = (Get-WmiObject -Class Win32_ComputerSystem | Select-Object -ExpandProperty Model).Trim()

NickolajA commented 5 years ago

This will get fixed shortly in the next version and updated with the same logic from Invoke-CMApplyDriverPackage.ps1 script.