Pages

Wednesday, December 20, 2023

Collect Computer's Hardware and System's Information

How to collect your computer's hardware and system's information?

Write this batch file:

 @echo off
echo Checking your system info, Please wait... >> OUTPUT.txt
ipconfig | find /i "IPv4" >> OUTPUT.txt
systeminfo | findstr /c:"Host Name" >> OUTPUT.txt
systeminfo | findstr /c:"OS Name" >> OUTPUT.txt
systeminfo | findstr /c:"OS Version" >> OUTPUT.txt
systeminfo | findstr /c:"System type" >> OUTPUT.txt
systeminfo | findstr /c:"Domain" >> OUTPUT.txt
systeminfo | findstr /c:"OS Version" >> OUTPUT.txt
systeminfo | findstr /c:"System Manufacturer" >> OUTPUT.txt
systeminfo | findstr /c:"System Model" >> OUTPUT.txt
systeminfo | findstr /c:"Total Physical Memory" >> OUTPUT.txt
systeminfo | findstr /c:"Original Install Date" >> OUTPUT.txt
systeminfo | findstr /c:"Total Physical Memory" >> OUTPUT.txt
systeminfo | findstr /c:"Logon Server" >> OUTPUT.txt


echo. >> OUTPUT.txt
echo Service Tag: >> OUTPUT.txt
wmic bios get serialnumber >> OUTPUT.txt
echo Mac Address: >> OUTPUT.txt
getmac >> OUTPUT.txt
wmic cpu get name >> OUTPUT.txt
cmdkey /list >>OUTPUT.txt

echo Hard Drive Space: >> OUTPUT.txt
wmic diskdrive get Name, Manufacturer, Model, InterfaceType, MediaType, SerialNumber, size >> OUTPUT.txt