HP BIOS Update - Error (no BIOS available)
For some reason, there is no BIOS update available for HP Firefly G11A currently. When we use the variable true for HPBIOSUpdate, it uses HPCMSL and crashes the progress at the end as it throws an error message that it couldn't find any BIOS update.
I can replicate the error by checking for BIOS updates.
PS C:\> Get-HPBIOSUpdates -Verbose
VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' =
root\cimv2,'className' = Win32_BaseBoard'.
VERBOSE: Operation 'Enumerate CimInstances' complete.
VERBOSE: Using platform ID 8C6F
VERBOSE: Retrieving catalog file https://ftp.hp.com/pub/pcbios/8C6F/8C6F.xml
VERBOSE: GET with 0-byte payload
VERBOSE: received 70-byte response of content type application/xml
There are currently no BIOS updates available for your platform.
At C:\Program Files\WindowsPowerShell\Modules\HP.ClientManagement\1.8.1\HP.ClientManagement.psm1:1725 char:5
+ throw [System.FormatException]"There are currently no BIOS update ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], FormatException
+ FullyQualifiedErrorId : There are currently no BIOS updates available for your platform.
I'd recommend contacting HP.
For now, just disable the option to update the BIOS on HP
@gwblok Oh I did, the reason I opened this issue is to see if there is a possibility for you and the team to put checks on the script as to when HPCMSL returns an invalid return, it doesn't crash the whole script
It's a fair request, and that was my first thought.
Ill probably do that in time for v2, but no plans to retrofit this code.
My availability has dropped dramatically recently, so I don't commit to anything.
That said, sometimes I just want to escape from my current tasks, and this might get done. I just can't commit.
@gwblok, that is totally understandable, and I appreciate your time and work as always.