How to Check Windows Uptime?

Modern operating systems have built-in timers that keep track of various parameters and processes as you work, play, or perform any other task with your computer. The primary value is uptime—a period that starts when you press the power on button and sign into your profile. When you turn off the computer, the OS resets its uptime timer.

There are many reasons why one would need to check Windows uptime. Microsoft’s operating system is a universal product that works in multiple device categories. Some require careful uptime monitoring to ensure a stable and uninterrupted workflow. This information might be unnecessary for your home computer. Still, some curious customers want to know how to check Windows uptime.

Windows allows checking its uptime using several methods, such as Task Manager, Command Prompt, or PowerShell. This article will show you all the ways to check Windows uptime.

Note. The following article applies to Windows 7, 8, 10, and 11.

Check Windows Uptime Using Task Manager

Task Manager is available on every Windows computer (unless Task Manager is disabled by Administrator), and it is one of the easiest way to find Windows uptime.

ADVERTISEMENT
  1. Press Ctrl + Shift + Esc to open Task Manager. Alternatively, right-click the taskbar and select Task Manager.
  2. Click the Performance tab. If you use Windows 11 version 22H2 and newer, click the tab with an ECG icon. event viewer uptime
  3. Click the CPU graph and look for the Up time value. It is stored in the DD:HH:MM:SS format. For example, 01:23:59:11 means 1 day, 23 hours, 59 hours and 11 seconds.

If you use Windows 7, launch Task Manager and go to the Performance tab and find the System section > Uptime.

That is how you check Windows uptime in Task Manager. However, there is one important catch.

Note. You might find a bit puzzling time upon checking Windows uptime in Task Manager. For example, Task Manager could display overwhelmingly long uptime measured in weeks or even months even five minutes after turning on the computer. That is what happens when you use Fast Startup. In such a case, Windows will reset the up time timer when you restart your computer (select restart from the power menu).

Disable Fast Startup in Windows if you want to get a precise up time value each time you turn on your computer. Note that hibernation will also skew the results.

  1. Press Win + R and type control. The command will launch the Control Panel.
  2. Set the view to Large or Small icons and click Power Options. system uptime event id
  3. Click Choose what the power buttons do. uptime event id
  4. Click Change settings that are currently unavailable. Note that the action requires administrative privileges.
  5. Uncheck the Fast Startup option and save the changes. Note that your computer will take a one or two second longer to boot once Fast Startup is off. powershell get uptime

Show Windows Up time using Command Prompt

There are several commands you can use to get Windows up time from Command Prompt, PowerShell, and Windows Terminal. Let us start with Command Prompt first.

Note. Windows up time shown in Command Prompt is affected by Startup boost, so you might get incorrectly looking values. Disable Fast Startup to get precise time.

  1. Launch Command Prompt (Administrator privileges are not required). Note: Windows 11 defaults Command Prompt to Windows Terminal and its standard PowerShell profile. That will not work. Press Win + R, type CMD and press Ctrl + Shift + Enter.
  2. Paste the following command and press Enter: systeminfo|FIND “System Boot Time”
  3. Command Prompt should return the following: System Boot Time: 1/19/2023, 9:26:17 PM get uptime of remote computer cmd

You can also get Windows uptime using one of the built-in system services that launch every time you power on your computer. Here is an example: net statistics workstation |find “Statistics since”

how to check uptime in windows server using powershell

The command above will return the price time when Windows launched a specific process.

Another way to get the Windows uptime is using WMI:

wmic path Win32_OperatingSystem get LastBootUpTime

The command will return the last boot time in YYYYMMDDHHMMSS format, which might look weird for an inexperienced customer. For example, 20230119212617.500674+120 means 2023, January 19, 21:26,17.

How to Check Windows Uptime in PowerShell?

Now here are the commands for checking Windows Uptime using PowerShell. You can launch PowerShell from the Start menu or within Windows Terminal, which is now a default command line in Windows 10 and 11.

Get-CimInstance Win32_OperatingSystem | Select-Object LastBootUpTime

check server uptime powershell

ADVERTISEMENT

If you want a more user-friendly output, use the following commands:

$wmi = Get-WmiObject Win32_OperatingSystem

$wmi.ConvertToDateTime($wmi.LastBootUpTime)

windows uptime

And here is another variant with precise values in days, hours, minutes, seconds, and even milliseconds:

(get-date) - (gcim Win32_OperatingSystem).LastBootUpTime

wmi system uptime

If you want to know exactly how many hours went after last Windows boot, use this command:

((get-date) - (gcim Win32_OperatingSystem).LastBootUptime).ToString('g')

PowerShell will output Windows uptime in a convenient HH:MM:SS format.

windows uptime command

ADVERTISEMENT

How to Check Windows Up time in Event Viewer?

Event Viewer is a built-in utility that keep track of every system process as you work with your computer. Consider it your PC’s black box that can help you troubleshoot various issues or get under-the-hood data, including Windows up time. Here is how to get Windows up time in Event Viewer.

Every time you turn your computer on or off, Windows creates an entry with the EventID 6005. Finding that value can pinpoint when was the last time your PC turned on or off.

  1. Right-click the Start menu button and select Event Viewer.
  2. Click Windows Logs > System.
  3. Right-click System and select Filter current log. windows uptime cmd
  4. Click the text box above Task category and type 6005. Click Ok. uptime command windows
  5. Windows Event log will return a list of all power on/off events. The number one event is your last boot time that lets you find the precise Windows uptime. cmd uptime

Find Uptime of Multiple Computers in AD Domain with PowerShell

Use the following PowerShell script to generate Windows uptime from several computers or servers in an Active Directory domain. We are using the Active Directory for Windows PowerShell module to get the computer list from a specific OU:

import-module activedirectory

$Servers = get-adcomputer -properties DNSHostName -Filter { enabled -eq "true" -and Operatingsystem -like "*Windows Server*" } -SearchBase ‘OU=Servers,OU=London,DC=corp,DC=theitbros,DC=com’

Foreach ($server in $Servers){

write-host $server.DNSHostName

Invoke-Command -ComputerName $server.DNSHostName -ScriptBlock { ("Uptime " + ((get-date) - (gcim Win32_OperatingSystem).LastBootUpTime).days) + " days" }

}

And that is how you check Windows uptime. Of course, the are other apps for monitoring Windows and getting values such uptime, but you can do the job without installing or purchasing third-party software. All it takes is a few clicks to launch Task Manager or copy-paste a command into PowerShell/Command Prompt.

I enjoy technology and developing websites. Since 2012 I'm running a few of my own websites, and share useful content on gadgets, PC administration and website promotion.
Latest posts by Cyril Kardashevsky (see all)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.