Walker News

How To Check Windows Last Boot Up Time

For those who use a mixture of Windows and Linux system should know that Linux OS has simple command to check system uptime or the last reboot time.

How to do this in Windows system? Are there such simple commands as last reboot or uptime that both available in Linux distributions?
Well, there are some Windows command line utilities to check Windows uptime, last boot up time, last reboot time, whatever you call it. (But, Linux command is much simple and easier for this subject!)

Using Windows command to check system uptime

In NT-based Windows (e.g. Windows 2000, Windows XP, Windows 2003, etc), just click Start button followed by Run menu to type cmd and press OK to bring up Command Prompt window.

For Windows Vista, click the Vista Orb, type cmd.exe in the Start Search text box (Vista Instant Search), and click the cmd.exe icon in the Program listing will do.
  1. net statistics workstation shows a line “Statistics since” in command output that indicates the Workstation service starting time. By default, this Windows system service started automatically when Windows boots up. It’s not the precise uptime indicator, but the variance is usually less than 60 seconds (at most, probably).
    To simplify the command output, pipe it to the find command, i.e.
    net statistics workstation | find "Statistics since"
  2. systeminfo output is lengthy, but there is a line that exactly showing the last Windows boot up time.
    • In Windows Vista, look for “System Boot Time”.
    • For other non-Vista, NT-based Windows (such as Windows XP), find the “System Up Time” keyword.

    To shorter the systeminfo command output for this subject, use the find command.
    For Windows Vista SP1:
    systeminfo| find "System Boot Time"

    For Windows XP:
    systeminfo| find "System Up Time"
  3. uptime.exe command. Sound familiar right? This Windows version of uptime command is not bundled with Windows, although the command is available for download from Microsoft.com since Windows NT SP 4.
    Update.exe command output in Windows Vista Ultimate SP1 (Though, the update.exe command options are not working correctly in this Vista version):
    C:\Users\Walker\Desktop>uptime.exe
    \\WalkerPC has been up for: 0 day(s), 2 hour(s), 3 minute(s), 20 second(s)

If you wonder when is your Windows PC rebooted, pick up one of those options to check it out!

Custom Search

  1. Virtual CloneDrive Is Another Virtual CD Drive Emulator – Walker News 13-07-08@17:00

    […] Revision History file installed by the setup program shows that Virtual CloneDrive supports Windows Vista since version 5.2.0.2 (released on 28th of October, 2007). The latest version 5.3.1.2 fix data […]

  2. How To Check Windows Uptime? 06-02-09@00:16

    […] For people who believe fewer programs are better (like me), you could refer the alternative, built-in functions to check Windows uptime: net statistics – At Windows Vista Command Prompt window, execute any one of these […]

  3. Brian 04-06-09@05:41

    Thank you for the info. Exactly what I was looking for. Ended up creating a two-line batch file to show the time:
    —–
    @echo off
    for /F “usebackq tokens=1,2,*” %%A IN (`net statistics workstation`) do if /%%A%%B == /Statisticssince echo %%C&exit /B 0
    —–

    Other than the issue of 1-digit month and day values (and U.S. format), works like a charm.

  4. Walker 04-06-09@19:17

    Thank you for your value-added tip.

  5. Walker 05-06-09@00:17

    OK, Brian. I just figure out how your Windows batch file works. To be frank, I posted your comment as it and it doesn’t work.

    However, you do provide me hint for this revised, working batch file:

    echo off
    for /F "tokens=1-2,3*" %%i IN ('net statistics workstation') do if "Statistics since"=="%%i %%j" (@echo Windows running since %%k %%l)
    
  6. Max 20-11-09@15:44

    This has been a very helpful page, thank you.

    Is it possible to use the net statistics command, but to find out when a PC was booted on a certain day over the past couple of months? If anyone has any advice (for a non-tech savvy individual), that would be most appreciated.

  7. BA 07-01-10@05:52

    @Max: You could search the System event log for standard startup events like “6005: The Event log service was started”.

    Also, a simple way to find the time and date of the last reboot is to check the modified date on the page file (C:\pagefile.sys by default). You need to show system files to see it.

  8. Jason 03-09-10@21:55

    Thanks for the helpful tips… Question… Is there anyway to tell what your uptime was AFTER a reboot? Thank you!

  9. Garvit Singh 10-01-11@01:12

    Well I came to this in search of last uptime period.But this info wasn’t what i was looking for.
    The current uptime can be seen from task manager>Performance tab.
    This will work for windows vista and maybe windows xp also.

  10. M.Latif/SATA 21-01-11@15:53

    This is really good command, that shows all the running config. Thanks

  11. Chris 22-03-11@22:04

    Very cool, I like it. Learned something new today. What a great start. :)

  12. zxc qwe 05-04-11@10:15

    Thanks for the Microsoft’s UpTime tool link. I just downloaded it and created a new shortcut and typed in the following one line commands

    C:\Windows\System32\cmd.exe /k C:\Downloads\uptime.exe && echo. && net statistics workstation | find “Statistics since” && echo. && pause && exit
    

    Enjoy!

  13. zxc qwe 05-04-11@10:59

    improved batch file version using code from this article and reader comments:

    1. From this article’s link, download uptime.exe from microsoft site into the C:\WinUpTime folder

    2. create file: C:\WinUpTime\boot-up-time.bat

    @echo off
    echo.
    uptime.exe
    echo.
    for /F “tokens=1-2,3*” %%i IN (‘net statistics workstation’) do if “Statistics since”==”%%i %%j” (@echo since %%k %%l)
    echo.
    pause
    echo.
    

    3. create a shortcut for C:\WinUpTime\boot-up-time.bat on your desktop

    4. Run & The Result is like:

    \\SYS-NAME has been up for: 0 day(s), 2 hour(s), 19 minute(s), 32 second(s)

    since 05-04-2011 05:44:55

    Press any key to continue . . .

  14. ilane 04-05-11@20:55

    I am sorry to all tech savvy people, but I am trying to find boot time for my computer for the past 60 days.
    The thing is my boss tells me I am not on time and since the only way I can prove is that I turn on my computer at the time I walked into the office.
    I would really apriciate any advise how this could be done.
    Thanks

  15. Walker 05-05-11@23:59

    I am not sure how serious you are, as you could easily make Windows auto boot up on time :)

    If not mistaken, some modern BIOS can schedule power on and boot up.

  16. Alan 18-11-11@00:59

    @ilane Seems to me the easiest and best solution for you in the long run. Go to bed earlier, get up earlier, make it to work earlier.

    Seriously any attempt to make it seem like your there on time when you’re not, is fraught with failure and disgrace. I speak from experience as I struggle with getting out of bed in the morning also.

    Sorry for the OT. And thanks for the original posters and the solutions also.

  17. Lokesh 27-11-11@13:55

    Thanks for the information @Walker. This is exactly what I was looking for.

    Thanks!

2014  •  Privacy Policy