ecotechsolutions.co.nz

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ping with Timestamp
#1
The native Windows Ping command can't record timestamps in the results without a lot of fussing around.
Use PowerShell and bang-out the following command to get timestamps on the ping results (replace COMPUTERNAME with either the Host Name or IP Address).

ping.exe -t COMPUTERNAME|Foreach{"{0} - {1}" -f (Get-Date),$_}

To send your results to a text file, pipe the results by appending the following.

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


Forum Jump:


Users browsing this thread: 1 Guest(s)

Computersense.co.nz