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..
Just be aware that the MS Uptime tool requires admin access to provide accurate info. It will usually display something whether you have admin access or not.. the problem is that the info presented without admin rights is based on the oldest event log entry, which will be wildly inaccurate if you regularly clear event logs.
At my prior employer, the event logs are dumped/cleared nightly. The members of the operations team did not have admin rights with their normal login, and the uptime checked (via UPTIME \\SERVER) at 4am would show only 4 hours or less of uptime. In fact, if no events occurred between midnight and, say, 3:15, it would show only 45 minutes of uptime! They would call the on-call person to report an unexpected reboot. We'd check and see 3 weeks, and think they were halucinating.
Just something to keep in mind with this tool.
Glenn
_________________________
Actually I
am a Rocket Scientist!