Table of Contents

Script to test LAN

Use this to get a report on LAN (or WAN) performance from Windows desktop - usually useful for wireless. May be useful to schedule it.

SET tstamp=run-%date:~10%-%date:~4,2%-%date:~7,2%-%time:~0,2%-%time:~3,2%-%time:~6,2%-%UserName%.txt
REM SET tstamp=run-%date:~10%-%date:~4,2%-%date:~7,2%-%time:~0,2%-%time:~3,2%.txt
SET OUTDIR=%UserProfile%\Desktop\lantest\log
mkdir %OUTDIR%
cd %OUTDIR%
echo Run Date/Time: %tstamp%                      >  "%tstamp%"
echo ============== LAN INTERFACES ============== >> "%tstamp%"
netsh wlan show interfaces                        >> "%tstamp%"
echo ============== PING LAN ==============       >> "%tstamp%"
ping -n 100 10.10.10.10                           >> "%tstamp%"
echo ============== PING WAN ==============       >> "%tstamp%"
ping -n 100 google.com                            >> "%tstamp%"
echo ============== IP Config ==============      >> "%tstamp%"
ipconfig /all                                     >> "%tstamp%"