Msinfo.bat
for /f “delims=: tokens=1” %%n in (‘hostname’) do echo %%n > %userprofile%\Desktop\hostname.txt
for /f %%b in (%userprofile%\Desktop\hostname.txt) do set hostname=%%b
msinfo32 /report %userprofile%\Desktop\%hostname%.txt
del %userprofile%\Desktop\hostname.txt
%userprofile%\Desktop\