Overview
Logging pings can be very useful for troubleshooting network issues or monitoring the stability of a connection over time.
Requirements
- PowerShell
- Local Administrator Rights
- Device or Machine IP address
How to Log Pings
- Open PowerShell as an administrator
- Use the following command to start logging pings with timestamps
ping.exe -t [DeviceIP] | ForEach {"{0} - {1}" -f (Get-Date), $_} >> [LogPath]- Replace [DeviceIP] with the IP address you want to ping; e.g. 192.168.0.100
- Replace [LogPath] with the file you want to store the ping log; e.g. c:\cnc100pinglog.txt

- As long as the PowerShell Window is open, the test will continue

- To view the log, open the file
- To stop, simply close the PowerShell window or press CTRL + C to stop the logging process