MSEndpointMgr / ModernBIOSManagement

MIT License
45 stars 22 forks source link

Lenovo BIOS part is looking in wrong variable for description Invoke-CMDownloadBIOSPackage.ps1 #9

Open Jabbaxx opened 3 years ago

Jabbaxx commented 3 years ago

Hello,

in the Lenovo part there is a small bug in Invoke-CMDownloadBIOSPackage.ps1 It makes the script "crash" and exit with code 1. In this line : Compare-BIOSVersion -AvailableBIOSVersion $PackageList[0].Version -AvailableBIOSReleaseDate $(($PackageList[0].PackageDescription).Split(":")[2].Trimend(")")) -ComputerManufacturer $ComputerManufacturer

PackageDescription must be changed to Description:

Compare-BIOSVersion -AvailableBIOSVersion $PackageList[0].Version -AvailableBIOSReleaseDate $(($PackageList[0].Description).Split(":")[2].Trimend(")")) -ComputerManufacturer $ComputerManufacturer