Command
@echo off
set RAPPORT=%USERPROFILE%\Desktop\diagnostic-reseau.txt
echo === IPCONFIG === > "%RAPPORT%"
ipconfig /all >> "%RAPPORT%"
echo. >> "%RAPPORT%"
echo === ROUTES === >> "%RAPPORT%"
route print >> "%RAPPORT%"
echo. >> "%RAPPORT%"
echo === DNS === >> "%RAPPORT%"
nslookup boiteaoutilsinformatique.fr >> "%RAPPORT%" 2>&1
echo. >> "%RAPPORT%"
echo === TEST PASSERELLE INTERNET === >> "%RAPPORT%"
ping -n 4 1.1.1.1 >> "%RAPPORT%"
echo Rapport cree : %RAPPORT%
pauseWhen to use it
Useful before escalating a network incident or when you need to gather the information required by a technician.
How it works
- The report is created on the desktop.
- Change the tested domain to match the affected service.
Precautions
- The file may contain IP addresses, DNS suffixes, and internal host names; do not publish it publicly.
Rollback
Delete diagnostic-reseau.txt after use.