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:
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