Skip to content

Instantly share code, notes, and snippets.

@davegreen
Last active September 8, 2016 19:33
Show Gist options
  • Save davegreen/ac642a9a5f4eab2b85a9e10bfbabe889 to your computer and use it in GitHub Desktop.
Save davegreen/ac642a9a5f4eab2b85a9e10bfbabe889 to your computer and use it in GitHub Desktop.
For use with HP machines for deploying UEFI/BIOS configurations.
PUSHD %~dp0
SET _bcu=BiosConfigUtility.exe
SET config=%1
IF /I "%PROCESSOR_ARCHITECTURE%" EQU "AMD64" (
SET _bcu=BiosConfigUtility64.exe
)
"%_bcu%" /nspwdfile:"%~dp0BIOSPW.bin" /set:"%~dp0%config%" /l
IF %ERRORLEVEL% EQU 10 (
"%_bcu%" /cspwdfile:"%~dp0BIOSPW.bin" /set:"%~dp0%config%" /l
)
POPD
EXIT /B 3010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment