Skip to content

Instantly share code, notes, and snippets.

@davegreen
Created September 8, 2016 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davegreen/be569e1c4d10dd09772467e265c935f3 to your computer and use it in GitHub Desktop.
Save davegreen/be569e1c4d10dd09772467e265c935f3 to your computer and use it in GitHub Desktop.
For use with HP machines for deploying updated UEFI firmware using HPqflash.
PUSHD %~dp0
SET _upd=hpqFlash.exe
SET bios=%1
IF /I "%PROCESSOR_ARCHITECTURE%" EQU "AMD64" (
SET _upd=hpqFlash64.exe
)
"%_upd%" -pBIOSPW.bin -f%bios% -s
POPD
IF %ERRORLEVEL% NEQ 282 (
IF %ERRORLEVEL% NEQ 273 (
EXIT /B 3010
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment