@echo off
set "OutputFile=c:\temp\EE26193131.txt"
for /F "skip=2 tokens=2-3 delims=," %%A in ('wmic computersystem get manufacturer^,model /FORMAT:csv') do (
set "Manufacturer=%%A"
set "Model=%%B"
)
for /F "skip=2 tokens=2 delims=," %%A in ('wmic systemenclosure get serialnumber /FORMAT:csv') do (
set "Serial=%%A"
)
echo %Manufacturer%, %Model%, %Serial%>%OutputFile%
|