(Image credit: Future)
On Windows 10, understanding how long a device has been up and running can be useful information in many scenarios. For example, when troubleshooting problems, you may want to know if a reboot was recently applied or if your computer is acting up while working on an important project, and you suspect a restart is required.
Whatever the reason, Windows 10 doesn’t make it obvious to see your system uptime, but it’s not impossible to find either, as you can deduce this information using Task Manager, Control Panel, Command Prompt, and PowerShell.
This guide will walk you through four simple ways to check your device uptime without scripts or restarting.
How to check PC uptime using Task Manager
The easiest way to check your device uptime is using Task Manager with these steps:
- Open Start.
- Search for Task Manager and click the top result to open the experience.
- Quick tip: You can also open Task Manager using the «Ctrl + Shift + Esc» keyboard shortcut or by right-clicking the taskbar and selecting Task Manager from the menu.
- Click the More details button (if you’re using the compact view).
- Click the Performance tab.
- Select the CPU section.
Once you complete the steps, you’ll see your device uptime on the right, at the bottom of the page.
How to check PC uptime using Control Panel
Another easy way to determine your system uptime is to check your network adapter status with these steps:
- Open Start.
- Search for Control Panel and click the top result to open the experience.
- Click on Network and Internet.
- Click on Network and Sharing Center.
- Click the «Change adapter settings» option in the left pane.
- Double-click the network adapter connected to the internet.
After completing the steps, you can deduce your computer uptime using the «Duration» information, which indicates the uptime from the network connection that resets every time the device starts. However, this method work as long as you didn’t reset your network connection since the last time you booted the device.
How to check PC uptime using Command Prompt
If you want to use Command Prompt to check your device uptime, you have at least two ways to do it.
WMIC method
To check the device uptime with Command Prompt on Windows 10, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result and click the Run as administrator option.
- Type the following command to query the device’s last boot time and press Enter: wmic path Win32_OperatingSystem get LastBootUpTime
Once you complete the steps, you’ll notice an output may look intimidating, but it’s not difficult to decode so you can understand your device’s uptime.
For example, the LastBootUpTime 20220919073744.500000-240 can be broken down using the info below.
- Year: 2022.
- Month: 09.
- Day: 19.
- Hour: 07.
- Minutes: 37.
- Seconds: 44.
- Milliseconds: 500000.
- GMT: -300 (5 hours ahead of GMT).
This means that the computer has been up and running since September 19, 2022, at 07:37 AM. If you want to be more specific, subtract the last boot time from the current time to deduce the number of days, hours, and minutes the device has been in operation.
System Information method
You can also see your system uptime in a more user-friendly format using the System Information tool with these steps:
- Open Start.
- Search for Command Prompt, right-click the top result and click the Run as administrator option.
- Type the following command to query the device’s last boot time and press Enter: systeminfo | find «System Boot Time»
The System Information tool can quickly show the last time your system rebooted in an easy-to-read format. Also, like the wmic command, you can subtract the last boot time from the current time to determine the number of days, hours, and minutes the device has been running.
How to check PC uptime using PowerShell
It’s also possible to check your device uptime using PowerShell with these steps:
- Open Start.
- Search for Command Prompt, right-click the top result and click the Run as administrator option.
- Type the following command to query the device uptime and press Enter: (get-date) — (gcim Win32_OperatingSystem).LastBootUpTime
After completing the steps, you’ll get the uptime information in a list format with the days, hours, and minutes.
This guide outlines several ways to check your device uptime, but it’s important to note that there are many other methods to find the same information using Command Prompt and PowerShell scripts. However, these are the most straightforward methods.
In addition, while these instructions are focused on Windows 10, these methods have been around for a long time, which means they’ll also work on Windows 8.1 and 7.
More resources
For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources:
- Windows 11 on Windows Central — All you need to know
- Windows 10 on Windows Central — All you need to know
All the latest news, reviews, and guides for Windows and Xbox diehards.
Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he’s a recognized member of the Microsoft MVP community.
Если вы хотите узнать, как долго работает ваш компьютер с Windows, вы можете легко найти время работы системы . Время работы – это термин, используемый для обозначения времени, в течение которого ваш компьютер работал непрерывно без перезагрузки. Этот пост покажет вам, как найти System Uptime в Windows 10/8.1/7/Server, используя CMD, команду SystemInfo, PowerShell, диспетчер задач.
Найти время работы системы Windows
1] Использование PowerShell
Откройте окно PowerShell с повышенными правами, введите следующее и нажмите Enter:
(get-date) - (gcim Win32_OperatingSystem) .LastBootUpTime
Вы увидите время загрузки в днях, часах, минутах, секундах и миллисекундах.
Здесь вы используете командлет Get-Date для возврата текущей даты и времени, а затем вычитаете значение свойства LastBootUpTime , которое приходит из Win32_OperatingSystem, говорит TechNet. GCIM – это псевдоним для Get-CimInstance .
2] Использование CMD
Если вы хотите узнать статистику сервера, вы можете открыть CMD с повышенными правами, введите следующее и нажмите Enter:
net stats srv
Первая строка em Статистика с ‘покажет вам время работы Windows.
3] Использование диспетчера задач
Если вы откроете диспетчер задач, на вкладке «Быстродействие» вы увидите время работы вашего компьютера , отображаемое там.
4] Использование инструмента SystemInfo
Встроенный инструмент SystemInfo позволяет просматривать время загрузки системы. Он отображает дату и время загрузки компьютера.
Хотите узнать дату установки Windows, чтобы узнать, когда Windows была установлена на вашем компьютере?
Как узнать аптайм сервера
Аптайм (uptime) — это время непрерывной работы сервера, т.е. время, прошедшее с момента загрузки операционной системы. С помощью аптайма можно оценить, как долго сервер работает без сбоев и перезагрузок. В операционных системах Windows есть много способов посмотреть аптайм, вот некоторые из них.
Самый простой способ — это запустить Task Manager и перейти на вкладку «Performance».
Атайм можно посмотреть и в свойствах сетевого подключения.
Также аптайм можно определить по системным логам. При выключении и перезагрузке сервера происходит остановка и запуск службы Event Log, поэтому мы можем открыть Event Viewer и отфильтровать события с кодом 6006 (остановка) или 6005 (старт службы).
Узнать время последнего старта операционной системы можно из командной строки, введя команду systeminfo и найдя строку System Boot Time.
Можно ввести команду net statistics workstation и посмотреть, с какого момента времени собирается статистика. Как правило, это момент загрузки системы.
Ну и конечно для выяснения аптайма можно воспользоваться WMI и PowerShell. Выяснить время старта ОС можно вот так:
$wmi = Get-WmiObject Win32_OperatingSystem
$wmi.LastBootUpTime
Время выводится в несколько неудобном формате, поэтому сконвертируем его:
$wmi.ConvertToDateTime($wmi.LastBootUpTime)
И выведем время работы с точностью до миллисекунды, вычтя из текущей даты дату последней загрузки:
$wmi.ConvertToDateTime($wmi.LocalDateTime) — $wmi.ConvertToDateTime($wmi.LastBootUpTime)
There are several ways to check your Windows 10 computer uptime and I will be listing all of them in this post. A system uptime is a value that represents the percentage of time a device is successfully operational. In other words a computer uptime tells you how long your PC has been up and running.
While troubleshooting Windows 10 issues, you may want to know if a reboot was done recently or essentially how long your machine has been up and running. Therefore finding the system uptime can be useful in such scenarios.
In Windows 10 it is not difficult to find the system uptime. There are multiple ways to find the computer uptime and pick the one that is easy for you.
Table of Contents
Method 1 – Check Windows 10 Computer Uptime using Command Prompt
Checking the PC uptime using command prompt – systeminfo is easy.
- Log in to your Windows 10 computer.
- Run the command prompt as administrator.
- Type the below command and press Enter key.
- The output shows the system boot time.
systeminfo | find "System Boot Time"
Method 2 – Check Windows 10 Computer Uptime using PowerShell
If you are a PowerShell lover, you can check your device uptime using PowerShell using below steps.
- On your Windows 10 computer, right click Start > click Windows PowerShell (Admin).
- Type the following command to query the device up-time and press Enter.
(get-date) – (gcim Win32_OperatingSystem).LastBootUpTime
Method 3 – Check Windows 10 System Uptime using Task Manager
In addition to using a command prompt or PowerShell, you can quickly find a computer up time using Task Manager.
On your Windows 10 computer, press Ctrl + Shift + Esc keys to start Task Manager. Go to the Performance tab > CPU. You can see system up time at the bottom.
Method 4 – Check Windows 10 System Uptime using Network Settings
To check the system up time using Network Settings :-
- On Window 10 computer, right-click Start > Run.
- Type ncpa.cpl and press Enter. This opens the network connections window.
- Right-click the Ethernet network adapter and click Status.
- In the Ethernet Network Adapter Status window, check the duration to know the computer uptime.
Method 5 – Find Windows 10 Computer uptime using WMIC
To check your computer uptime using WMIC, follow the below steps.
- On your Windows 10 computer, right-click Start > Command Prompt (Admin).
- Type the below command to query the device’s last boot time. Press Enter.
wmic path Win32_OperatingSystem get LastBootUpTime
Prajwal Desai is a Microsoft MVP in Intune and SCCM. He writes articles on SCCM, Intune, Windows 365, Azure, Windows Server, Windows 11, WordPress and other topics, with the goal of providing people with useful information.
Following are eight ways to find the Uptime in Windows OS.
1: By using the Task Manager
In Windows Vista and Windows Server 2008, the Task Manager has been beefed up to show additional information about the system. One of these pieces of info is the server’s running time.
- Right-click on the Taskbar, and click Task Manager. You can also click CTRL+SHIFT+ESC to get to the Task Manager.
- In Task Manager, select the Performance tab.
-
The current system uptime is shown under System or Performance ⇒ CPU for Win 8/10.
2: By using the System Information Utility
The systeminfo
command line utility checks and displays various system statistics such as installation date, installed hotfixes and more.
Open a Command Prompt and type the following command:
systeminfo
You can also narrow down the results to just the line you need:
systeminfo | find "System Boot Time:"
3: By using the Uptime Utility
Microsoft have published a tool called Uptime.exe. It is a simple command line tool that analyses the computer’s reliability and availability information. It can work locally or remotely. In its simple form, the tool will display the current system uptime. An advanced option allows you to access more detailed information such as shutdown, reboots, operating system crashes, and Service Pack installation.
Read the following KB for more info and for the download links:
- MSKB232243: Uptime.exe Tool Allows You to Estimate Server Availability with Windows NT 4.0 SP4 or Higher.
To use it, follow these steps:
- Download uptime.exe from the above link, and save it to a folder,
preferably in one that’s in the system’s path (such as SYSTEM32). - Open an elevated Command Prompt window. To open an elevated Command
Prompt, click Start, click All Programs, click Accessories,
right-click Command Prompt, and then click Run as administrator. You
can also type CMD in the search box of the Start menu, and when you
see the Command Prompt icon click on it to select it, hold
CTRL+SHIFT and press ENTER. - Navigate to where you’ve placed the uptime.exe utility.
- Run the
uptime.exe
utility. You can add a /? to the command in order
to get more options.
It does not offer many command line parameters:
C:\uptimefromcodeplex\> uptime /?
usage: Uptime [-V]
-V display version
C:\uptimefromcodeplex\> uptime -V
version 1.1.0
3.1: By using the old Uptime Utility
There is an older version of the «uptime.exe» utility. This has the advantage of NOT needing .NET. (It also has a lot more features beyond simple uptime.)
Download link: Windows NT 4.0 Server Uptime Tool (uptime.exe) (final x86)
C:\uptimev100download>uptime.exe /?
UPTIME, Version 1.00
(C) Copyright 1999, Microsoft Corporation
Uptime [server] [/s ] [/a] [/d:mm/dd/yyyy | /p:n] [/heartbeat] [/? | /help]
server Name or IP address of remote server to process.
/s Display key system events and statistics.
/a Display application failure events (assumes /s).
/d: Only calculate for events after mm/dd/yyyy.
/p: Only calculate for events in the previous n days.
/heartbeat Turn on/off the system's heartbeat
/? Basic usage.
/help Additional usage information.
4: By using the NET STATISTICS Utility
Another easy method, if you can remember it, is to use the approximate information found in the statistics displayed by the NET STATISTICS command.
Open a Command Prompt and type the following command:
net statistics workstation
The statistics should tell you how long it’s been running, although in some cases this information is not as accurate as other methods.
5: By Using the Event Viewer
Probably the most accurate of them all, but it does require some clicking. It does not display an exact day or hour count since the last reboot, but it will display important information regarding why the computer was rebooted and when it did so. We need to look at Event ID 6005, which is an event that tells us that the computer has just finished booting, but you should be aware of the fact that there are virtually hundreds if not thousands of other event types that you could potentially learn from.
Note: BTW, the 6006 Event ID is what tells us when the server has gone down, so if there’s much time difference between the 6006 and 6005 events, the server was down for a long time.
Note: You can also open the Event Viewer by typing eventvwr.msc in the Run command, and you might as well use the shortcut found in the Administrative tools folder.
- Click on Event Viewer (Local) in the left navigation pane.
- In the middle pane, click on the Information event type, and scroll down till you see Event ID 6005. Double-click the 6005 Event ID, or right-click it and select View All Instances of This Event.
- A list of all instances of the 6005 Event ID will be displayed. You can examine this list, look at the dates and times of each reboot event, and so on.
- Open Server Manager tool by right-clicking the Computer icon on the start menu (or on the Desktop if you have it enabled) and select Manage. Navigate to the Event Viewer.
5.1: Eventlog via PowerShell
Get-WinEvent -ProviderName eventlog | Where-Object {$_.Id -eq 6005 -or $_.Id -eq 6006}
6: Programmatically, by using GetTickCount64
GetTickCount64 retrieves the number of milliseconds that have elapsed since the system was started.
7: By using WMI
wmic os get lastbootuptime
8: The new uptime.exe for Windows XP and up
Like the tool from Microsoft, but compatible with all operating systems up to and including Windows 10 and Windows Server 2016, this uptime utility does not require an elevated command prompt and offers an option to show the uptime in both DD:HH:MM:SS and in human-readable formats (when executed with the -h
command-line parameter).
Additionally, this version of uptime.exe
will run and show the system uptime even when launched normally from within an explorer.exe session (i.e. not via the command line) and pause for the uptime to be read:
and when executed as uptime -h
: