Computer uptime is the amount of time the computer has been running continuously since the last boot without a shutdown or restart. The PC uptime is useful in troubleshooting different computer issues. This is used especially by network admins for troubleshooting purposes.
Computer uptime is synonymous with Windows uptime as both are almost the same. There are a few ways to check Windows uptime like using the network adapter stats, from the task manager or using command prompt or Powershell. We will discuss each method one by one.
- 1 Difference between uptime and availability?
- 2 How to check uptime in Task Manager
- 3 Check uptime using the network adapter
- 4 How to check Windows uptime using the command prompt (CMD)
- 5 Check system uptime using PowerShell
- 6 Final thoughts
Difference between uptime and availability?
Most people confuse uptime with availability. Before moving forward, we should know the difference between uptime and availability. They are not the same. According to Wikipedia:
Uptime is a measure of system reliability, expressed as the percentage of time a machine, typically a computer has been working and available.
Availability is the probability that a system will work as required when required during the period of a mission.
A computer may be up and running but the required resources for a specific operation may not be available depending upon the system load. For example, A computer may be running but its network card may not be working properly or its bandwidth being overused. In this case, the system has uptime but it not available for the specific task.
How to check uptime in Task Manager
The easiest way to check uptime in Windows 10 is by using the Task Manager. The biggest advantage of using the Task Manager is that it shows the uptime in real-time to the seconds precision.
- Open Task Manager by right-clicking on the taskbar and selecting Task Manager (Ctrl + Shift + Esc).
- Go to the Performance tab and go to the CPU section where you will see the uptime in days: hours: minutes: seconds in real-time.
Clarification: There is one clarification here. Windows calculates the total uptime of the computer. This is like CPU uptime, the time CPU has been active. If you put the computer to sleep or hibernate mode, those times will not reset the uptime timer. When the computer comes back to an active state, Windows will start calculating the uptime from the same position where it left off.
For example, if my computer was active for 2 hours and then I hibernated it for 24 hours. I started the computer again and used it for two more hours. Windows will calculate the total uptime as 4 hours.
Check uptime using the network adapter
Another quick way to check the current system uptime is to check the active network adapter status. This only works if your network is always connected.
- Right-click the network icon in the system tray and select “Open Network & Internet settings“.
- From the Status section, click on “Network and Sharing Center”. Or simply go to Run –> control /name microsoft.networkandsharingcenter
- Click on the active network adapter’s link
- The opening window will show the uptime.
Basically, this is the network uptime. This will reset if the computer goes to sleep or hibernation.
How to check Windows uptime using the command prompt (CMD)
You can also check the uptime using the command-line.
Systeminfo is a command which lists general information about the Windows system. It lists the last boot time of Windows. We will need to manually calculate how much time has passed until now.
Open command prompt by going to Run –> cmd and run the following command:
systeminfo | find “System Boot Time”
There is another WMIC command which will let you know about the boot time of the computer as a string. This can be helpful for developers and DevOps.
Open the command prompt and run the following command:
wmic path Win32_OperatingSystem get LastBootUpTime
If you see the above screenshot of my computer, you will know that the boot time of my computer was:
Year: 2019 + Month: 09 + Day: 13 + Hour: 15 + Minutes: 24 + Seconds: 00 + Milliseconds: 500000.
The last +300 is the time zone. That means I’m in GMT + 3 timezone.
Using Net Statistics utility
Net Statistics command can be used for checking the last boot time:
Open the command prompt and run the following command:
net statistics workstation
The line starting with Statistics since is your boot time.
The same command can be used to check Windows Server uptime but the command will become net statistics server.
Check system uptime using PowerShell
PowerShell gives a clearer answer using the same string as the command prompt. It will actually calculate the uptime instead of the last boot time. It also shows the total no. of days, hours, minutes and seconds separately.
Open PowerShell and run the following command:
(get-date) – (gcim Win32_OperatingSystem).LastBootUpTime
If you are using PowerShell 6, then you can simply use the following command to get the Windows uptime and the last startup time:
Windows fast startup is enabled by default in Windows 10. If it is enabled, Windows will not reset the LastBootUpTime value. So you will not get the exact Windows uptime. To disable fast startup quickly, run the following command:
powercfg -h off
If you want to check the current Windows uptime, you will need to use the network adapter method to check the network time. But it only works if you are always connected to the Internet.
These are some of the ways which can be used to quickly get the last boot time or check the total uptime of the computer. Every command has its own advantages. You can use the method which suits you best. The only thing I haven’t been able to find is the answer to how old is my computer? The systeminfo command only gives information about the Windows installation date and time. Maybe the BIOS can show me something about that. Most of the methods mentioned above work with all versions of Windows including Windows 10, Windows 8, Windows 7, Windows Vista. You can also check Windows Server uptime using the same commands.
Please tell me about how you check the uptime of your computer and for what purpose do you use this information?