Ping with a Timestamp

Here is a very quick and dirty way to monitor a server over an extended period of time. A timestamp will output on the screen so you can see when the server was available or not. It will also log to a file for archival purposes. Place the code below in a *.CMD file, replace “google.com” with the server or address of your choice, and double click.

Time /t > Site_Log.txt
Time /t >> Site_Log.txt
Ping google.com >> Site_Log.txt
Time /t
Ping google.com
#microsoft #registry #windows