Overview
This guide will explain how to set up a repeating ping test using a batch file and Command Prompt. The purpose of this guide is to help identify connection issues between your devices and server. Note that this guide does not check ports or monitor ports.
You can download the example files here or you can create your own with the instructions below
Batch File Setup For On-Prem Customers
- Create a batch file called RepeatPingTest.bat or download from the example files above
- To easily create a batch file, save a notepad as RepeatPingTest.bat. You might need to enable ‘File Name Extension’ in your File Explorer
- Enter the following code into your .bat file:
@echo offset host=**YOUR SERVERS IP HERE**set CUR_YYYY=%date:~10,4%set CUR_MM=%date:~4,2%set CUR_DD=%date:~7,2%set CUR_HH=%time:~0,2%if %CUR_HH% lss 10 (set CUR_HH=0%time:~1,1%)set CUR_NN=%time:~3,2%set CUR_SS=%time:~6,2%set CUR_MS=%time:~9,2%set SUBFILENAME=%COMPUTERNAME%_%CUR_YYYY%%CUR_MM%%CUR_DD%_%CUR_HH%%CUR_NN%%CUR_SS%set logfile=PingTest_%SUBFILENAME%.txtecho Target Host = %host% >%logfile%for /f “tokens=*” %%A in (‘ping %host% -n 1 ‘) do (echo %%A>>%logfile% && GOTO Ping):Pingfor /f “tokens=* skip=2” %%A in (‘ping %host% -n 1 ‘) do (Â Â echo %date% %time:~0,2%:%time:~3,2%:%time:~6,2% %%A>>%logfile%Â Â echo %date% %time:~0,2%:%time:~3,2%:%time:~6,2% %%AÂ Â timeout 1 >NULÂ Â GOTO Ping)
- Change the host variable to whatever IP or Domain name of your server

How to run your Bat file
- Right click your .bat file and select ‘Run as Administrator’
- A Command Prompt window will appear, alerting you of when each ping is ran. Closing this window will terminate the ping test.
How to review your results
- Open PingTest_XXXX.txt created by your test (which might land at C:\Windows\System32)
- Use Ctrl + F to find a certain date/time. Note that this time uses the military 24hr format, so 3pm is 15:00
You should not see ‘Request Timed Out’ or ‘Destination host unreachable’ as these indicate a drop in connection. Time is in ms, which is milliseconds. 1000ms equals 1 second.
Please attach the RepeatPingOutput.txt file to submit to Support for us to review.
PowerShell Script Setup for Cloud Customers
- Download the ‘New-ConnectionTest.ps1’ from here
- Create a folder on the machine which will run the test called ‘Temp’ in the C:/ drive

How to run your Bat file
- Right click your .ps1 file and select ‘Run with PowerShell’
- If PowerShell prompts you asking ‘Do you want to run this script’, simply type ‘Y’ then hit enter
- A PowerShell window will appear, alerting you of when each test is ran. Closing this window will terminate the connection test.
How to review your results
- Open SavanceWorkplaceConnectionTest.log created by your test under the C:/Temp
- Use Ctrl + F to find a certain date/time or ‘TCP Test: False’ to find failures
- Please note it is normal to see ‘Ping: False’ for Cloud Customers