Posts

Showing posts with the label ping

How to ping and have date and time of response?

How to ping and have date and time of response? we will  use powershell:     ping google.com -t | ForEach-Object { >>     "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') $_" >> } response is: 2025-11-19 13:20:49 Pinging google.com [142.251.42.206] with 32 bytes of data: 2025-11-19 13:20:49 Reply from 142.251.42.206: bytes=32 time=5ms TTL=117 2025-11-19 13:20:50 Reply from 142.251.42.206: bytes=32 time=5ms TTL=117 2025-11-19 13:20:51 Reply from 142.251.42.206: bytes=32 time=5ms TTL=117 2025-11-19 13:20:52 Reply from 142.251.42.206: bytes=32 time=5ms TTL=117