How to get the system uptime in Windows? [closed]
I am using windows 7 and xp. I want to know the uptime of the system. What is the command / procedure for getting the uptime?
12k 19 19 gold badges 86 86 silver badges 109 109 bronze badges
asked Jul 23, 2012 at 5:09
user1465825 user1465825
Err, are you looking for a command in command prompt? If you are, then try net statistics server in command prompt.
Jul 23, 2012 at 5:12
Question to be posted in superuser
Jul 23, 2012 at 5:13
How to retrieve information about the system state from the command line is very clearly related to programming.
Nov 20, 2014 at 12:02
This question is answered on ServerFault: serverfault.com/questions/159612/…
– user565869
Nov 20, 2014 at 16:04
see also superuser.com/a/909172/33303 if you are interested in standby/hibernation too
Nov 17, 2016 at 12:40
3 Answers 3
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.)
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
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 :
Windows uptime (аптайм) как узнать?
К сожалению, в Операционной системе Windows uptime штатной команды нет как в Unix — системах. Но посмотреть сколько проработал компьютер, или когда он был включен, возможность есть. Опишу несколько способов как узнать в Windows uptime:
1. Через команду systeminfo (самый удобный на мой взгляд способ):
Чтобы ее выполнить, нужно запустить командную строку (для Windows XP: Пуск -> Выполнить -> cmd , для Windows 7: Пуск -> в строке поиска пишем cmd и кликаем на найденный вариант , через горячие клавиши для всех Windows: Win + R cmd ).

В командной строке запускаем команду systeminfo и где-то среди первых строк результата ищем что-то типа «Время загрузки системы:» («System Boot Time:» ) в Windows 7 , или «Время работы системы:» в Windows XP . В Windows 7 эта команда показывает дату и время когда система загрузилась, а в Windows XP промежуток времени прошедший с момента загрузки.

2. Команда net statistics workstation , или net statistics server , или net stats srv , в первой строке показывает с каких пор снимается статистика;
3. В Windows 7 , в диспетчере задач ( Ctrl + Shift + Esc ), на вкладке «Быстродействие» («Performance» ) ближе к низу есть строка «Время работы» («Up Time») :

Как на все эти данные влияют режимы (спящий и ждущий режим компьютера) не проверено.
Такими простыми действиями мы можем проверить узнать uptime в Windows Xp и Windows 7.
Как узнать аптайм сервера
Аптайм (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
Время выводится в несколько неудобном формате, поэтому сконвертируем его:
И выведем время работы с точностью до миллисекунды, вычтя из текущей даты дату последней загрузки:
Как определить время работы системы (UP time) без выключения на примере windows server 2008 R2


Добрый день уважаемые читатели блога pyatilistnik.org, сегодня хочется рассказать, о том как определить время работы системы (UP time) без выключения, на примере windows server 2008 R2. Случается и такое, что нужно определить например для доказательства, что сервер не перезагружался а работал как швейцарские часы, для этого Microsoft не поскупилась на способы определения, хорошо, что во первых все делаем встроенными средствами, а во вторых разнообразие, каждый найдет самый актуальный для него метод. Итак открываем Диспетчер устройств в windows server 200R2
Как узнать uptime windows систем
Первый Способ узнавать uptime windows
И так давайте научимся с вами узнавать uptime windows операционных систем, на примере Windows Server 2008 R2, но все проделанные средства подойдут и для других редакций.

Как определить UP time (время работы системы) без выключения на примере windows server 2008 R2
Переходим на вкладку Быстродействие и видим, что время работы системы 2 дня 4 часа 54 минуты

Как определить UP time (время работы системы) без выключения на примере windows server 2008 R2
Второй способ узнавать uptime windows
В командной строке введите команду: net statistics workstation. В результате вы увидите время начала работы ОС Windows.

Как определить UP time (время работы системы) без выключения на примере windows server 2008 R2
Третий способ узнавать uptime windows
Узнать время последнего старта операционной системы можно из командной строки, введя команду systeminfo и найдя строку Время загрузки системы. Если ввести без ключей вы получите очень подробную информацию о системе вплоть до обновлений.

Как определить UP time (время работы системы) без выключения на примере windows server 2008 R2
Но чтобы быть более кратким введем
для англоязычной версии операционной системы systeminfo | find «System Boot Time:»
для русскоязычной версии операционной системы systeminfo | find «Время загрузки системы:».

Как определить UP time (время работы системы) без выключения на примере windows server 2008 R2

Как определить UP time (время работы системы) без выключения на примере windows server 2008 R2
Четвертый способ узнавать uptime windows

Как определить UP time (время работы системы) без выключения на примере windows server 2008 R2
Или будем учить оснастки через пуск, вводим ncpa.cpl

Как определить UP time (время работы системы) без выключения на примере windows server 2008 R2
В любом случае вы попадете на ваш сетевой интерфейс, от которого нам нужны свойства и строка Длительность.

Пятый способ узнавать uptime windows
Так же информацию можно найти в Журналах Windows (Event Viewer). Для этого: Пуск-Администрирование-Просмотр событий или просто в пуске ввести просмотр событий или eventvwr.msc.

Как определить UP time (время работы системы) без выключения на примере windows server 2008 R2
Переходим в систему и делаем фильтр текущего журнала и вводим в нужное поле 6005

Как определить UP time (время работы системы) без выключения на примере windows server 2008 R2
Видим отфильтровалось и осталось гораздо меньше логов. Открываем его.

Как определить UP time (время работы системы) без выключения на примере windows server 2008 R2
В итоге находим нужное сообщение, о том когда была запущена система.

Как определить UP time (время работы системы) без выключения на примере windows server 2008 R2
Шестой способ узнавать uptime windows
$wmi = Get-WmiObject Win32_OperatingSystem
$wmi.LastBootUpTime
Время выводится в несколько неудобном формате, поэтому сконвертируем его:
$wmi.ConvertToDateTime($wmi.LastBootUpTime)
И выведем время работы с точностью до миллисекунды, вычтя из текущей даты дату последней загрузки:
$wmi.ConvertToDateTime($wmi.LocalDateTime) — $wmi.ConvertToDateTime($wmi.LastBootUpTime)

Как определить UP time (время работы системы) без выключения на примере windows server 2008 R2
Популярные Похожие записи:
Как поменять часовой пояс в Windows Server 2019 и выше- Ошибка DHCP, потеряна связь с партнером
- Как узнать, нуждается ли удаленный сервер в перезагрузке
Get-ClusterLog и поиск ошибок в Failover Clusters- Просмотр и очистка DFS кэша
Как вернуть средство просмотра фотографий Windows 11, за минуту
Июн 30, 2022 15:28 Автор — Сёмин Иван
One Response to Как определить время работы системы (UP time) без выключения на примере windows server 2008 R2
vmware-user :
Спасибо помогло определить uptime windows 7. Теперь буду знать как посмотреть uptime
Добавить комментарий
Поиск по сайту
Подписка на youtube канал
Выберите рубрику
Active directory, GPO, CA Android Apple ASUS, Sony VAIO CentOS Cisco, Mikrotik Debian, FreeBSD DNS Exchange, Power Shell HP/3Com Hyper-V IBM IIS и FTP, web и seo Juniper Lenovo, intel, EMC, Dell Microsoft Office Microsoft SQL server, Oracle Microsoft System Center NetApp Network, Телефония News Raid, LSI, Adaptec Supermicro Ubuntu Utilities Veeam Backup & Replication, Windows Server Backup Vmware, VirtualBox Windows 7 Windows 8/8.1 Windows 10, Windows 11 Windows 2008/2008 R2 Windows 2012/2012 R2 Windows Server 2016, Windows Server 2019, Windows Server 2022 WordPress, 1C Битрикс Безопасность, Kali СХД Сертификация перед сном
Подписка не Telegram

Последние записи
- Страница с переадресацией в Search Console
- Как скачать и анализировать дамп ESXI
- Произошла исключительная ситуация (Microsoft Office Excel): Нет доступа к файлу
- Ошибка запуска службы «error 1069 the service did not start»
- Установка netcat в Windows и Linux
