How to update HP BIOS using latest HPFirmwareUpdRec with SCCM

Jonathan LefebvreSCCM9 Comments

At a client site, they received newest HP models to be tested. Downloading drivers and BIOS updates were the usual. Looking at details about the BIOS update, we noticed that the HPBIOSUPDREC.exe that was used was no longer available.  HP released a new version called HPFirmwareUpdRec to replace it. Even if the help stated the command line to be the same, it turned out it didn’t work at all. Unfortunately, it doesn’t seem HP documented the new tool and how to use it. we were able to figure it out by digging into HP forums…

In this post, we will show hot to update HP BIOS using the latest HPFirmwareUpdRec tool within a task sequence.

Prerequisites

When downloading the bits from HP, looking at the BIOS files you need to see HPFirmwareUpdRec.exe.

If the file is not there, the update should be done using the old tool HPBIOSUPDREC.exe like before.

SCCM BIOS update HPFirmwareUpdRec

Update HP Bios with HPFirmwareUpdRec

  • Looking at the help from the old and new tool points to the exact same command line or almost…

SCCM BIOS update HPFirmwareUpdRecSCCM BIOS update HPFirmwareUpdRec

  • If we look closely, the -F as changed from specifying the ROM Bin file, to specify the folder containing the firmware update files.
  • After multiple testing, turns out that we can just skip the -F option and the tool will find the .BIN file within the source folder and use it.
    • The command line should be : HpFirmwareUpdRec64.exe -s -pPWD.bin -r -b
    • The -b option turned out to be necessary even if BitLocker was not enabled yet as part of the task sequence.
    • So the Run Command Line set should look like this.
    • the package used is pointing to the root of the folder where the tool and the .BIN file are located.
    • Note that the previous password.bin file worked just fine.

SCCM BIOS update HPFirmwareUpdRec

  • But that was not the end to surprises. On the new models, HP provides by default an HP_TOOLS partition of 2GB. Turns out that the HPFirmwareUpgRec is using that partition to update the BIOS.
    • without this partition, the BIOS will NOT update at all
    • Add to your partitioning task the following partition
    • No need to assign a letter for that drive, but the name is important.

SCCM BIOS update HPFirmwareUpdRec

  • Once this was added the update went well! Hurray!!
  • Retrying the task sequence over the same computer brought up another error for the BIOS upgrade. Return Code was 282.
    • Manually running the command line from within windows led me to better understand the error.
    • Under the run path of HPFirmwareUpgRec, it will automatically create a log file with the same name.
    • This log provided the details about the error code 282, which simply state  Same Firmware version no need to update!

SCCM BIOS update HPFirmwareUpdRec

Note
This is the log file I used to figure out the previous steps.

Error codes I saw were :

3010 for pending restart

282 for Same firmware version

9191 for the unknown file, while trying to specify the .BIN file

  • So we would like to consider the 282 error code as a success code. On the Options tab the run command line, simply add 282 to the list of Success codes!

SCCM BIOS update HPFirmwareUpdRec

 

Voilà!

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading...

Share this Post

Contributor of System Center Dudes. Based in Montreal, Canada, Senior Microsoft SCCM consultant, working in the industry for more than 10 years. He developed a strong knowledge of SCCM and MDT to build automated OS deployment solution for clients, managed large and complexe environment, including Point of Sale (POS) related projects.

9 Comments on “How to update HP BIOS using latest HPFirmwareUpdRec with SCCM”

  1. Hi Jonathan,

    My update comes back with error code 3010 but doesn’t do anything on restart. Have you come across this before?

    1. Hi Michael,

      nope haven’t seen that behavior… Try to run the same command from within Windows and look at the log file. you might see more details.
      Jonathan

  2. Hello Jonathan,

    Thank you for the documentation its very helpful considering HP has nothing!

    I tested this but could you please confirm if you are running the stepo after OS or in WINPE? as when i run the same steps in WINPE i get 260 as error and dont find any log to troubleshoot. ( running it via SCCM )

    1. Hi Priya,

      that is correct, I do it after the OS.
      Try to open the log with the command prompt in PE to see what mean error 260.

      the log should be on c:\_smsTasksequence\packages\\HpFirmwareUpdRec.txt ( or x64 depending on which you chose)

      Please share the result, and I’ll add it to the list of codes in the post.
      thanks!
      Jonathan

      1. Hello

        So what I did was, we partition legacy to UEFI first then apply BIOS setting and then partiton UEFI and apply operating system , normally this was working until this new firmware update.

        I added the HP_Tool partition as mentioned to the first partition , it fails with 260
        HPBiosUpdate::Partition::FindEspPartition|PartitionStyle == PARTITION_STYLE_GPT, PartitionCount: 3
        HPBiosUpdate::Partition::FindEspPartition|No GPT hard drive found.
        |HPBiosUpdate::Partition::AccessEspPartition|No ESP partition found.
        |HPBiosUpdate::Partition::FindHp_ToolsPartition|Mount EFI partition returned WMI error: 0x8004102F
        CHPBiosUpdateApp::ExitInstance|HpFirmwareUpdRec Return Code = 260

        Then i removed the Legacy conversion partition and kept only the UEFI partition it fails again with 260

        HPBiosUpdate::Partition::FindEspPartition|ESP partition found: index=0 PartitionNumber=0.
        HPBiosUpdate::Partition::AccessEspPartition|ESP drive already mounted as S:\.
        |HPBiosUpdate::Partition::AccessEspPartition|Error creating S:\EFI\HP\: 0x3
        |HPBiosUpdate::Partition::FindHp_ToolsPartition|Mount EFI partition returned WMI error: 0x8004102F
        |CHPBiosUpdateApp::PrepareEfiFlash|No BIOS recovery partition was found.
        CHPBiosUpdateApp::ExitInstance|HpFirmwareUpdRec Return Code = 260

        I did a manual Diskpart adn tested i still get the second error so i decided to do the below
        I kept the UEFI partition , but moved my flash step after apply OS then it works.

        Looks like HP wants to run all its flash in OS now. we had similar issues with TPM flashing too.
        hope this helps:)

        good day

        Priya

  3. Cheers the txt method fixed that part now it doesn’t continue on reboot :S I’m sure I’ll get there!

  4. Thanks for the guide, I have noticed with the old version of HPBIOSUPDREC.exe was a bit kinky with the HP Tools partion. One way that worked for was to create a step with a commandline: diskpart /s CreateHP_TOOLS.txt

    And the CreateHP_TOOLS.txt containing:
    sel vol C:
    shrink desired=500
    create part prim size=500
    format quick fs=FAT32 label=HP_TOOLS
    assign letter T
    exit

  5. Hi Jonathan,

    Thanks for the guide. Would it be possible to put up a picture of your Disk Partition and Format step?

    I take it your using UEFI. For some reason mine setup doesn’t find the HP_TOOLS partition.

Leave a Reply

Your email address will not be published. Required fields are marked *