cls @echo off echo . echo . ANALYZER, a simple batch job written by Steve Thornburg. echo . Job time can be long as 20 minutes. Please be patient. echo . Working . . . echo . C: cd \ if NOT EXIST this_pc mkdir this_pc cd this_pc if EXIST report.txt goto ITISHERE ipconfig > report.txt echo "= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =" >> report.txt ipconfig /all >> report.txt echo "= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =" >> report.txt route print >> report.txt echo "= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =" >> report.txt nbtstat -n >> report.txt echo "= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =" >> report.txt arp -g >> report.txt echo "= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =" >> report.txt echo. >> report.txt echo . running NetStat (1 of 2) . . . . . netstat -r >> report.txt echo "= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =" >> report.txt echo. >> report.txt echo . running NetStat (2 of 2) . . . . . netstat -a >> report.txt echo "= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =" >> report.txt echo. >> report.txt echo . running Ping (1 of 1) . . . . . ping stevethornburg.com >> report.txt echo "= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =" >> report.txt echo. >> report.txt echo . running pathPing (is slow) . . . pathping stevethornburg.com >> report.txt echo "= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =" >> report.txt echo. >> report.txt echo . running TraceRoute (is slow) . . . tracert stevethornburg.com >> report.txt echo "= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =" >> report.txt echo. >> report.txt cd \ if NOT EXIST C:\this_pc\report.txt goto MISSING rem OK so far, so now try to run msinfo utility if EXIST %WINDIR%\system32\dllcache\msinfo32.exe goto POSTBONE echo . echo . Could not find .\dllcache\msinfo32.exe, so will look elsewhere . . . if NOT EXIST "C:\Program Files\Common Files\Microsoft Shared\MSInfo\msinfo32.exe" goto WRAPPER echo . echo . Found .\MSInfo\msinfo32.exe, and will launch that utility. echo . echo . This will take a while, so please be patient . . . REM "http://support.microsoft.com/?kbid=255713" cd "C:\Program Files\Common Files\Microsoft Shared\MSInfo" start /wait msinfo32.exe /report C:\this_pc\msinfo.txt /categories +all echo . echo . A comprehensive system report has been created. echo . You can find it at C:\this_pc\msinfo.txt goto WRAPPER :POSTBONE echo . echo . Found .\dllcache\msinfo32.exe, and will launch that utility. echo . echo . This will take a while, so please be patient . . . REM "http://support.microsoft.com/?kbid=255713" cd %WINDIR%\system32\dllcache start /wait msinfo32.exe /report C:\this_pc\msinfo.txt /categories +all echo . echo . A comprehensive system report has been created. echo . You can find it at C:\this_pc\msinfo.txt :WRAPPER echo . echo . A basic system report has been created for you. echo . You can find it at C:\this_pc\report.txt echo . goto MEND :ITISHERE echo . echo . The file C:\this_pc\report.txt already exists. echo . Please remove or rename it, then run me again. echo . goto MEND :MISSING echo . echo . ERROR - Missing or bad 'C:\this_pc\report.txt' file. echo . This diagnostic exercise has failed. echo . goto MEND :ADDMOREHERE rem blah blah blah... goto MEND :SOURCES rem Description of Windows XP System Information (Msinfo32.exe) Tool rem http://support.microsoft.com/kb/q308549/ rem Windows 2000 Command-Line Parameters for Msinfo32.exe rem http://support.microsoft.com/?kbid=255713 rem How to troubleshoot TCP/IP connectivity with Windows XP rem http://support.microsoft.com/kb/314067/EN-US/ rem How to troubleshoot home networking in Windows XP rem http://support.microsoft.com/kb/308007/ rem How to reset Internet Protocol (TCP/IP) in Windows XP rem http://support.microsoft.com/kb/299357/ rem How to Troubleshoot TCP/IP Connectivity with Windows 2000 or Windows NT rem http://support.microsoft.com/kb/102908/ :MEND echo . Press 'ENTER' now . . . pause