Return Manufacturer via WMIC

I used this in WinPE to return the manufacturer.

Note, remove the underscore in front of DELLMODE

@echo off
color 0a
cls

set code1=
set code2=

for /f “delims==” %%m in (‘wmic csproduct get vendor ^| find /c /i “Hewlett-Packard”‘) do set /a code1=%%m
if %code1% EQU 1 (
goto :HPMODE
)

for /f “delims==” %%n in (‘wmic csproduct get vendor ^| find /c /i “Dell”‘) do set /a code2=%%n
if %code2% EQU 1 (
goto :_DELLMODE
)

color 0c
Echo Not compatible…this machine cannot be imaged.
pause
exit

:_DELLMODE
echo Dell Mode…
pause
exit

:HPMODE
echo HP Mode…
pause
exit

email me