Using UPTIME from Microsoft you can do UPTIME /S and it will give you a log of all up and down time and length and average, etc..