previous post
Open PowerShell and run the below command:-
ping.exe -t 8.8.8.8|Foreach{"{0} - {1}" -f (Get-Date),$_}
If you want to log the ping result in a txt file you just have to use >desktop\pingresult.txt in the end of the command. The pingresult.txt file will be on your Desktop.
The final command will be like :-
ping.exe -t 8.8.8.8|Foreach{"{0} - {1}" -f (Get-Date),$_} >desktop\pingresult.txt
Founder of "Our Alien". I am a IT PROFESSIONAL and A big OPEN SOURCE ENTHUSIAST . Checkout my LinkedIn profile for professional information and my website for personal information.