Knowing how much time your system has been running is a piece of information useful for administrators. Sometimes you might need it in order to know when the machine has recovered from a possible power failure or any other issue it might have had. While there are plenty of 3rd-party tools that allow one to find the exact uptime of the system, there are at least 4 methods I can think of built-in in your system. Windows Vista has made it easier in at least 2 or 3 ways out of the total number described below, but method #2 and 3 also work for pre-Vista operating systems.
Probably the easiest of them all.
Harder to remember by heart, but useful for various scripting options.
Cmd /k systeminfo | find "System Boot Time"
System Boot Time: 05/25/2007, 23:57:47
Microsoft have published a tool called Uptime.exe. While hardly a new tool, uptime.exe is a simple command line tool that analyzes the computer’s reliability and availability information. It can work locally or remotely. In its simple form, the tool will display the current system uptime. An advanced option allows you to access more detailed information such as shutdown, reboots, operating system crashes, and Service Pack installation.
Read the following KB for more info and for the download links:
Uptime.exe Tool Allows You to Estimate Server Availability with Windows NT 4.0 SP4 or Higher – 232243 http://support.microsoft.com/kb/232243
Not as descriptive as the previous methods, and like the Reliability Monitor (read my “Using the Reliability Monitor in Windows Vista” article), it does not display an exact day or hour count since the last reboot, but it will display important information regarding why the computer was rebooted and when it did so. For the purpose of this article we will look at Event ID 6005, which is an event that tells us that the computer has just finished booting, but you should be aware of the fact that there are virtually hundreds if not thousands of other event types that you could potentially learn from.
Got a question? Post it on our Windows Vista Forums!