Find the System Up Time from the command line

Anonymous
2010-02-02T20:54:27+00:00

Hello All,

  In the past I've used the command {systeminfo | find /I "Uptime"} to find the how long the windows xp machine has been up.  Now I find that {systeminfo | find /I "System Boot"} will get me the time the machine last booted up not the uptime.  Is there a way from the command line to find this.  I know you can find it using the Event Viewer, and Task Manager, but I was looking for a way from the command line.

Windows for home | Previous Windows versions | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2010-02-03T19:39:54+00:00

Hi,

Please note Windows 7 do not have an "Up Time" variable but rather "System Boot Time".

Hence in Windows 7 C:> net statistics server

Server Statistics for \COMPUTERNAME

Statistics since 8/31/2009 8:52:29 PM

{16 lines of other info deleted}

(Note that the command above shows network statistics since last boot, hence up-time can be inferred.)

Also, Microsoft provides the Uptime utility which you may install on your computer and check for the system usage.

Refer this below link.

http://technet.microsoft.com/en-us/library/cc751311.aspx

C:>Uptime

SYSTEMNAME has been up for: 16 day(s), 4 hour(s), 24 minute(s), 47 second(s)

Thanks and Regards:

I. Suuresh Kumar- Microsoft Support.

Visit our Microsoft Answers Feedback Forumand let us know what you think.

Was this answer helpful?

20+ people found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2010-10-05T21:57:08+00:00

    In Windows XP, enter this command at the Command Prompt:  systeminfo | find "SystemUp Time"

    You should get this:

           System Up Time:            3 Days, 21 Hours, 21 Minutes, 51 Seconds

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2010-02-08T03:10:48+00:00

    Suresh I,

      Thanks for your answer.  It's a bummer they took that out of Windows 7, I found it nice to use in XP.  The uptime utility is pretty old, I guess it will still work on current OSes.

    Thanks,

    Viza

    Was this answer helpful?

    0 comments No comments