Seite 1 von 1

EmpirumAgent.bat: Adding SW/drivers for some models

Verfasst: 05. Jun 2014, 10:26
von 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

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