mikedopp icon

BatchInfoReport

mikedopp | PRO | 06/14/16 05:16:26 PM UTC | 0 ⭐ | 362 👁️ | Never ⏰ | []
text |

3.49 KB

|

None

|

0 👍

/

0 👎

@echo off
cls
color 1B
title System Information Report
echo.
echo This script will begin gathering info when you are ready.
echo.
echo The log will be saved as SystemInfoReport.txt
echo It will be automatically opened when complete.
echo.
pause
cls
echo BASIC INFORMATION: >SystemInfoReport.txt
echo. >>SystemInfoReport.txt
wmic /append:SystemInfoReport.txt computersystem get name,model,manufacturer,systemtype,domain
echo Serial # is: >>SystemInfoReport.txt
WMIC BIOS GET SerialNumber | find /V "SerialNumber" >>SystemInfoReport.txt
echo BIOS version: >>SystemInfoReport.txt
wmic BIOS get smbiosbiosversion | find /V "SMBIOSBIOSVersion" >>SystemInfoReport.txt
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>SystemInfoReport.txt
echo MEMORY INFORMATION: >>SystemInfoReport.txt
echo. >>SystemInfoReport.txt
echo Total # of DIMM slots(used AND empty): >>SystemInfoReport.txt
wmic memphysical get memorydevices | find /v "MemoryDevices" >>systeminforeport.txt 
echo Information on all installed DIMMs: >>SystemInfoReport.txt
wmic /append:SystemInfoReport.txt memorychip get devicelocator,capacity,speed,partnumber,memorytype
echo Memory type codes: >>SystemInfoReport.txt
echo 20=DDR, 21=DDR2, 22=BRAM, 23=FB-DIMM, 24=DDR3, 25=FBD2, 26=DDR4, 27=LPDDR, 28=LPDDR2, 29=LPDDR3, 30=LPDDR4 >>SystemInfoReport.txt
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>SystemInfoReport.txt
echo PROCESSOR INFORMATION: >>SystemInfoReport.txt
echo. >>SystemInfoReport.txt
wmic /append:SystemInfoReport.txt CPU GET name, caption, maxclockspeed, deviceid, status, addresswidth
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>SystemInfoReport.txt
echo SERVER INFO:>>SystemInfoReport.txt
echo. >>SystemInfoReport.txt
echo Roles installed on this machine: >>SystemInfoReport.txt
wmic computersystem get roles | find /v "Roles" >>SystemInfoReport.txt
echo Printers and folders shared from this machine: >>SystemInfoReport.txt
net share | find /v "The command completed successfully." >>SystemInfoReport.txt
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>SystemInfoReport.txt
echo NETWORKING INFO for enabled interfaces only: >>SystemInfoReport.txt
echo. >>SystemInfoReport.txt
wmic /append:SystemInfoReport.txt nicconfig where ipenabled=true get dnsdomain,dhcpenabled,dhcpleaseexpires,defaultipgateway,ipaddress,description,dhcpserver,defaultipgateway,dnsserversearchorder,ipsubnet 
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>SystemInfoReport.txt
echo Output from IPCONFIG /ALL>>SystemInfoReport.txt
ipconfig /all >>SystemInfoReport.txt
start notepad.exe "systeminforeport.txt"
exit

Comments