1 Reply Latest reply on May 17, 2017 8:12 AM by derniwi1

    BIOS update script

    rreichart Rookie

      Is there anybody who has a nice working BIOS update script?

       

      actually I have a script that updates the BIOS for HP Clients, but it is not nice

      no query of actuall installed BIOS Version nor a Information for the user about the procedure of the Update.

       

      I am appreciate if anyone can provide a script template or give some Feedback how you handle this.

        • 1. Re: BIOS update script
          derniwi1 Rookie

          Hi,

           

          I'm using this eScript:

          !HP EliteBook 820 G3 / 840 G3 BIOS
          !Changes:
          !15.05.2017: v1.14
          !
          !Initialize variables
          RegReadValue('HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS','BiosMajorRelease','BIOSMajor')
          RegReadValue('HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS','BiosMinorRelease','BIOSMinor')
          !
          !1.14 is the most current version
          If %BIOSMajor%='1'
           If %BIOSMinor%>='14'
          !  nothing to do
            ExitProcEx(Done,'BIOSVersion: %BIOSMajor%.%BIOSMinor% => OK')
          If %BIOSMajor%>'1'
          ! nothing to do
           ExitProcEx(Done,'BIOSVersion: %BIOSMajor%.%BIOSMinor% => OK')
          !
          !Update to the new version
          Set('returncode','0')
          If IsRunningOnX64
           RunAsEx('.\Extern$\HPBIOSUPDREC64.exe','-s','','','5','returncode',raUseSisAccount+WaitForExecution+raLogonWithProfile+UndoneContinueParentScript)/TW
          Else
           RunAsEx('.\Extern$\HPBIOSUPDREC.exe','-s','','','5','returncode',raUseSisAccount+WaitForExecution+raLogonWithProfile+UndoneContinueParentScript)/TW
          !
          System_Reset/TS
          EndInstallerSession/TS
          ExitProcEx(Undone,'Current BIOS version: %BIOSMajor%.%BIOSMinor% => Upgrading to 1.14')

           

          This works pretty good on the HP EliteBook 820 G3 and 840 G3.

           

          I downloaded the current BIOS file and extracted it using 7zip. Then I put all the files into the Extern$ directory:

          HPBIOSUPDREC.exe
          HPBIOSUPDREC64.exe
          HpqPswd.exe
          HpqPswd64.exe
          N75_0114.bin
          WSSP79859.rtf

           

          Maybe this helps. I don't know if this works on other HP machines since I just have these two notebook modells here.

           

          Regards

          Nils

          2 of 2 people found this helpful