EmpirumAgent.bat: Adding SW/drivers for some models

Moderator: jknoth

Antworten
Benutzeravatar
Hendrik_Ambrosius
Moderator
Moderator
Beiträge: 7411
Registriert: 13. Dez 2004, 23:10
Wohnort: Adendorf/Lüneburg

EmpirumAgent.bat: Adding SW/drivers for some models

Beitrag von Hendrik_Ambrosius » 05. Jun 2014, 10:26

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
Hendrik Ambrosius / Senior Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 AG | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 AG or of the support team.

Antworten

Zurück zu „OS-Installer“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste