How to Log Pings

How to Log Pings

Overview

Logging pings can be very useful for troubleshooting network issues or monitoring the stability of a connection over time. 

Requirements

  1. PowerShell
  2. Local Administrator Rights
  3. Device or Machine IP address

How to Log Pings

  1. Open PowerShell as an administrator
  2. Use the following command to start logging pings with timestamps
  3. Quoteping.exe -t [DeviceIP] | ForEach {"{0} - {1}" -f (Get-Date), $_} >> [LogPath]
    1. Replace [DeviceIP] with the IP address you want to ping; e.g. 192.168.0.100
    2. Replace [LogPath] with the file you want to store the ping log; e.g. c:\cnc100pinglog.txt

  4. As long as the PowerShell Window is open, the test will continue
Notes
  1. To view the log, open the file
  2. To stop, simply close the PowerShell window or press CTRL + C to stop the logging process

    • Related Articles

    • How to add a Service Account to a Windows Service

      Overview To access network resources, a Windows service requires authentication credentials. This article will guide you on how to add user credentials (Service Account) to a Windows service. Add Credentials to a Windows Service Open "services.msc" ...