tb-chris
(TB-Chris)
1
Description
This script can be used to automate network diagnostics and troubleshooting. The script checks network connectivity, DNS resolution, and ping response times.
This is set for google.ca at the moment. please change to desired IP or URL
Please run this Command Prompt.
Source Code
@echo off
set host=google.ca
ping -n 1 %host%
if %errorlevel% equ 0 (
echo Ping to %host% successful.
) else (
echo Ping to %host% failed.
)
nslookup %host%
if %errorlevel% equ 0 (
echo DNS resolution for %host% successful.
) else (
echo DNS resolution for %host% failed.
)
pause