Skip to content
English
  • There are no suggestions because the search field is empty.

Ping w/ time stamp and writing to file

Search

Ping w/ time stamp and writing to file

This article is to show how to ping a network device while gathering the date and time of the ping and writing that information to a file so that you can go back later and check the results without having to worry about losing it.


In the below PowerShell command, replace the bolded items with what you are wanting to ping and the directory of the log output.


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

 



Related Articles