IT Toolbox

Create a Windows Network Diagnostic Report

View my favorites
CMD Low risk

Create a Windows Network Diagnostic Report

Consolidates IP configuration, routes, DNS and several connectivity tests into a text file.

Command / script
@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%
pause

When should you use it?

Useful before escalating a network incident or when you need to gather the information required by a technician.

What the script does

  • 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.

♡ 0