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: