If you are like me who likes to leave my computer running on 24/7 basis whenever it’s possible, have you ever checked how long your computer has been up and running and when was the last time you turned your computer on?
Let’s find it out.
Method 1 – from Task Manager
Right-click on the Taskbar, and click Task Manager, and select Performance tab once in it and choose CPU.
Method 2 – from Command Line
Geeks are cool because they like the command line. So let’s open the command prompt window by hitting Win+R keyboard shortcut and typing in cmd in the open box.
And type in “systeminfo” in the command prompt window. Scroll the window a bit up to look for the System Boot Time from the output.
Oops, it only tells us when the computer was booted. But I think that’s fine. As a geek, we can do the calculation ourselves, can’t we?
Bonus, if you are a geek who also likes SysInternals toolset, you can use psinfo.exe to find out your computer’s uptime right from the output.
Method 3: An old school command line Uptime.exe
Uptime.exe is a standalone program that is originally designed for Windows NT Server. You could get the command line executable file from Windows NT directory but since no one is using Windows NT anymore, you can actually get it from CodePlex directly. Download it, extract it, and run it.
Z:\Users\s184\Downloads>uptime 15:56:35 uptime 6 days, 04:41:40
Method 4: A WMIC way
Right, here you go:
wmic os get lastbootuptime
Method 5: the Net way
Yep, the NET command line delivers as well:
net stats work
Method 6: the PowerShell way
And, how can we forget about the power of the PowerShell:
(Get-CimInstance Win32_OperatingSystem).LastBootupTime
Hi Kent. you fogot to include another method, the uptime utility from Microsoft at http://support.microsoft.com/kb/q232243/
Regards,
Patrick.
Ha..yes, the old tool still works. Thanks for mentioning.
Cheers.
the problem with systeminfo is that it does not cater for hibernation. Checking the network card connected time works. Can this be checked with powerscript?
Turn on SNMP and query though SNMP to get how long your system is up
thanks
Nice =D my computer is running for 11 days now
My PC is a Minecraft server and its been up for 9 day 12 hours as of now
is there anyway i can see how long my pc has been up all in all? like from when i first bought it?
hmm…don’t think there is a way. You can find out when your computer first installed by the command line systeminfo but you can’t find how long your computer has been up right from the day it’s installed. I don’t think Windows ever tracks that information.
My computer has been up and running for 362 days. I think I should reboot it…
haha…you definitely should.
that’s perfect tutorial
thanks
Thank You Dear….
Thanks! 34 days currently
Thanks for great tutorial. I wondered why the times are different when using systeminfo and net commands in my computer. I mean, method 2 and method 5 yields different results on my PC. It has to do something with what @Henrik says, I think.