Page 1 of 1

EmpirumAgent.bat: Adding SW/drivers for some models

Posted: 05. Jun 2014, 10:26
by Hendrik_Ambrosius
If you want to add specific software or drivers for just some PC models when running the EmpirumAgent.bat os install postcommand this script can help you figuring out which PC-model the script is running on:

@echo off
FOR /F "tokens=3 skip=2" %%i IN ('REG QUERY "HKLM\Software\MATRIX42\Empirum Installer" /v MachineIdNum') DO SET MachineIDNum=%%i
FOR /F "tokens=3 skip=2" %%i IN ('REG QUERY "HKLM\Software\MATRIX42\Empirum Installer" /v HW_MachineName') DO SET HW_MachineName=%%i

echo MachineIDNum=%MachineIDNum%
echo HW_MachineName=%HW_MachineName%

if "%machineIDNum%"=="120559_54167" goto E6420

goto hwend

:E6420
echo Dell Latitude E6420 detected
rem call setup.exe .... or whatever
goto hwend

:hwend