Output continuous ping test to text file
Posted by , Last modified by Tennyson LaJeunesse on 21 May 2023 12:10 PM

This PowerShell command will run a continuous ping test and output to a text file. Edit IP and file location as needed.

This is useful for evaluating a connection over time unattended.

ping -t x.x.x.x | Foreach{"{0} - {1}" -f (Get-Date),$_} > c:\temp\pingtest.txt

Comments (0)