Continuous Ping with Timestamp

Continuous Ping with Timestamp

ping -t 8.8.8.8|Foreach{"{0} - {1}" -f (Get-Date),$_} > c:\google_ping_log.txt

put this in Windows PowerShell