Ping with timestamp in Windows Powershell

Open Windows Powershell

Enter the below command replacing "remote_ip_or_host_name_here" with the ip address or hostname of the remote device you want to ping.

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

The results should look as follows

If you enter an invalid hostname it will you will get the following error.

Article Details

Article ID:
83
Rating :