Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the simplest way to find out how long a computer is turned on Windows?

share|improve this question
up vote 32 down vote accepted
  • Run command line
  • Type Systeminfo
  • Find "System Up Time"

    Days: 10 Hours: 10 Minutes: 10 Seconds: 10

for shorter result you can use

systeminfo | find "Boot Time"

share|improve this answer
>systeminfo | find "Boot Time" – svandragt Jul 23 '09 at 9:18
for me the simplest way now is > systeminfo | find "Up Time" – Juozas Kontvainis Jul 23 '09 at 9:29
Doesn't work on Vista (use already included uptime.exe instead). – mwore Jul 23 '09 at 12:50
Also note you can use this to query a remote machine as systeminfo /S *machinename*` | find "Up Time"` – GAThrawn Oct 14 '09 at 10:41
On Windows 7, it shows "System Boot Time" but not "System Up Time". – Keith Thompson Dec 28 '11 at 22:20

there is great command line tool from Microsoft uptime.exe:

good thing with this tool is it works really fast.

Uptime [server] [/s ] [/a] [/d:mm/dd/yyyy | /p:n] [/heartbeat] [/? | /help]
server Name or IP address of remote server to process.
/s Display key system events and statistics.
/a Display application failure events (assumes /s).
/d: Only calculate for events after mm/dd/yyyy.
/p: Only calculate for events in the previous n days.
/heartbeat Turn on/off the system's heartbeat
/? Basic usage.
/help Additional usage information.

share|improve this answer

Open the commandprompt and type:

net stats srv | find "Statistics"

Source (MS KB). Edit: Actually this will tell you the date and time when the pc was up from, - not the duration.

Example output:

>net stats srv | find "Statistics"
Server Statistics for \\4IFS-SANDER
Statistics since 22/07/2009 10:14:14
share|improve this answer
I'm not sure if this info is correct now, when I use MicTech's and KovBal's solution I get this: >systeminfo | find "Boot Time" System Boot Time: 23/07/2009, 02:22:27 – svandragt Jul 23 '09 at 9:17
On Vista it returns "Statistics since 1.1.1980 00:00:00" (use already included uptime.exe instead) – mwore Jul 23 '09 at 12:52

On Windows 7 / Windows Server 2008 and above, this information is displayed in task manager under the "Performance tab".

This can be quicker then using the command line and works in cases where you might have WMI issues preventing you from running systeminfo.

where to find uptiem

If you need to find this remotely, you could also run

systeminfo /s SERVERNAME | find "Time:"

from the command line.

share|improve this answer
On Windows 7 / SP1 and 2008 / R2, yes. Not on higher level OS (8, 8.1, 10) – BlueCompute Mar 10 at 11:18

If you have the Windows Server 2000 or 2003 resource kits try

srvinfo -ns [\\\server] | Findstr "Time"

Note: Srvinfo.exe will not run on a 64-bit versions of Windows, due to it being 16-bit.

share|improve this answer

Following command correctly gives last reboot time for the system

systeminfo /s server_name | find "System Boot Time"

share|improve this answer

You must log in to answer this question.

protected by Community Jul 30 '14 at 18:46

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .