Uptime program compatible with Windows 7?
I'd like to get the uptime of my computer, and also power events, like when the computer goes to sleep and when it's waking up. Bonus points if it tells why it's waking up: scheduled task, user interaction, magic packet, ...
Microsoft released ages ago an uptime command that does that, when used with some extra parameters:
- /s Display key system events and statistics.
- /a Display application failure events (assumes /s).
When used without any parameters, uptime works but gives only the ... uptime. However, when used with /a or /s, it crashes.
Do you know a similar program that display also the "key system events and statistics"? The System Event Log gives information on when it goes to sleep but not more.
I'm running Windows 7 Ultimate 64-bit, if it matters.
Thanks a lot!
Mark Russinovich of Sys Internals (since bought^W absorbed by Microsoft) has a suite of tools which, in one form or another, solve most of what your looknig for:
PSInfo returns, in amongst everything else, uptime.
PSLogList in the same group will dump the even log.
Forgot to add: All of the SysInternals tools are very good. Many are quite useful, especially for Unix-ish people looking for focused tools to get fairly specific information, ofetn command-line or command line compatible.
Get to all of them at http://www.sysinternals.com (which will be redirected to the deep page in Microsoft's site).
As far as application failures go you probably have more luck with Windows' Reliability Monitor:
That one doesn't show system bootup or shutdown but it shows application crashes, system crashes, installed software and updates, etc.
If one gets a reasonable idea what exactly is a "key system event" for uptime.exe
then it's probably not hard to recreate with PowerShell.