@echo off
:: REFERENCE: http://ftp.hp.com/pub/caps-softpaq/cmit/HP_BCU.html
cd “%~dp0”
Echo Installing HP MIK…
echo.
“setup.exe” /s /v”/qn”
echo.
echo Detecting Model…
echo.
for /f “tokens=2 delims==” %%a in (‘wmic computersystem get Model /value’) do set “Model=%%a”
:: No Password – Set Password
if “%Model%”==”HP Compaq dc7900 Small Form Factor” “HPBIOSCFG-7900.exe” /set:7900.txt
if “%Model%”==”HP Compaq 8000 Elite SFF PC” “HPBIOSCFG-8000.exe” /set:8000.txt
if “%Model%”==”HP Compaq 8200 Elite SFF PC” “HPBIOSCFG-8200.exe” /set:8200.txt
if “%Model%”==”HP Compaq Elite 8300 SFF” “HPBIOSCFG-8300.exe” /set:8300.txt
if “%Model%”==”HP EliteDesk 800 G1 SFF” “HPBIOSCFG-800g1.exe” /set:800g1.txt
if “%Model%”==”HP EliteDesk 800 G2 SFF” “HPBIOSCFG-800g2.exe” /set:800g2.txt
if “%Model%”==”HP EliteDesk 800 G3 SFF” “HPBIOSCFG-800g3.exe” /set:800g3.txt
:: Has Password – Set New Password
if “%Model%”==”HP Compaq dc7900 Small Form Factor” “HPBIOSCFG-7900.exe” /set:7900.txt /cspwd:YourPW
if “%Model%”==”HP Compaq 8000 Elite SFF PC” “HPBIOSCFG-8000.exe” /set:8000.txt /cspwd:YourPW
if “%Model%”==”HP Compaq 8200 Elite SFF PC” “HPBIOSCFG-8200.exe” /set:8200.txt /cpwdfile:pw1.bin
if “%Model%”==”HP Compaq Elite 8300 SFF” “HPBIOSCFG-8300.exe” /set:8300.txt /cpwdfile:pw1.bin
if “%Model%”==”HP EliteDesk 800 G1 SFF” “HPBIOSCFG-800g1.exe” /set:800g1.txt /cpwdfile:pw1.bin
if “%Model%”==”HP EliteDesk 800 G2 SFF” “HPBIOSCFG-800g2.exe” /set:800g2.txt /cpwdfile:pw1.bin
if “%Model%”==”HP EliteDesk 800 G3 SFF” “HPBIOSCFG-800g3.exe” /set:800g3.txt /cpwdfile:pw1.bin