Created
September 8, 2016 19:34
-
-
Save davegreen/2caade16ace6f541b0789a084f6c7a86 to your computer and use it in GitHub Desktop.
For use with HP machines for deploying updated UEFI firmware.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUSHD %~dp0 | |
SET _upd=HPBIOSUPDREC.exe | |
SET bios=%1 | |
IF /I "%PROCESSOR_ARCHITECTURE%" EQU "AMD64" ( | |
SET _upd=HPBIOSUPDREC64.exe | |
) | |
"%_upd%" -pBIOSPW.bin -f%bios% -s -r | |
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