Найти время рабочего состояния системы(uptime) в Windows Vista/XP или Windows
Server 2008/2003 нельзя так же просто как в Linux или Unix используя команду uptime. Однако это не так уж и сложно.
В этой заметке я покажу два способа, которыми можно это сделать.
1 Используем утилиту Systeminfo
Утилита Systeminfo покажет вам время когда была загружена система. Путем несложных математических вычислений можно получить время uptime’а.
Для запуска команды,
1. Нажмите Start — search и введите “cmd” (Start — Run, cmd в Windows XP/2003). ями вы запустите командную строку.
2. Находясь в командной строке, введите “systeminfo“. Результатом выполнения команды будут различные системные параметры подобные дате установки, установленные хосфиксы, информация о системе и тому подобное. Найдите параметр “System boot time”:
2 Используем команду “net statistics”
С помощью команды “net” можно выполнять различные операции, и одной из них является получение системной статиcтики рабочей станции или сервера.
Находясь в командной строке, введите следующую команду
c:\>net statistics workstation
В строке “statistics since” указано время после загрузки системы, с которого началась собираться статистика:
Постовой
Любите притчи? Заходите в блог «Страна тайного сказа»
Очень подробно и доходчиво о женском автомобиле. Советы по выбору, эксплуатации для женщин.
Today marks a sad day in the history of Fatmin. Today I post my first Windows related blog post. Trust me, its not that I want to. Rather it is more a matter of necessity as I have found myself administering more and more Windows Servers (thanks VMware).
Anyway to find your uptime in Windows 2003 Server you first need to assume that your server just rebooted for no apparent reason, as its running windows. Second, you need to open a cmd prompt and type the following.
>net statistics server
Look for the line that starts with… Statistics since …
That is when the server was last booted.
Hi SysAdmins
It is very useful to know how many days are your system up and online. Especialy in windows OS.
There are several ways to find the system uptime in Windows XP and above:
Using Systeminfo command:
This command-line utility shows the time that the system was booted and its running time.
To use Systeminfo,
- launch the command prompt “cmd” window (Start – Run, cmd) .
- From the command prompt, type “systeminfo“ and hit enter. This will display various system info including the “System boot time”:
Using “net statistics” command
From the command prompt run, the following command:
net statistics workstation
This will show the system statistics:
The uptime.exe Tool
Microsoft has a tool that works on any OS from Windows NT 4.0 sp 4 and above.
You can download uptime.exe from here.
More info from Microsoft here.
System Administrators Tricks
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Almost every unix operating system comes with a utility called uptime that tells you how long your server has been running.
Unfortunately no such tool comes with windows, but there are a few ways to determine the date you computer was last started. Type the following in to the command prompt.
systeminformation
One of the oldest methods to find the uptime of a Windows server is to use the net statistics
command. This technique worked as far back as Windows NT and Windows 2000:
net statistics server
It will output something like:
Server Statistics for \\PETE Statistics since 6/9/2002 11:09 AM
This still works on a Windows Server 2022 machine, but you have to use net statistics workstation
instead of server
.
The net command is very useful, it allows you to connect to shares, start services, send messages between computers and more. To learn more about it type:
net help
Here are some examples using the net command.
List all accounts in a domain:
net accounts /DOMAIN
Send a message to all users in the domain (a text box pops up). Replace /DOMAIN with a username to send to just one user.
net send /DOMAIN "The server is rebooting"
Start a service
net start "Service Name"
Stop a service
net stop "Service Name"
Uptime for Windows was first published on October 13, 2002.
Finding the uptime in Windows Vista/XP or Windows Server 2008/2003 is not as straight forward as running the command “uptime” in Linux or Unix. However, it isn’t difficult either.
There are two ways to find the system uptime in Windows Vista/Server 2008/XP/2003.
1 Using Systeminfo utility
The Systeminfo utility shows you the system boot time. The time originally the system was booted and running from.
To run the command,
1. Click Start – search and type “cmd” (Start – Run, cmd in Windows XP/2003). This should launch the command prompt.
2. From the command prompt, type “systeminfo“. This should check various system stats like installation date, hotfixes etc. Look for the “System boot time” as follows:
2 Using “net statistics” command
The “net” command can perform various operations and one of them is the system statistics of a workstation or a server.
From the command prompt run, the following command
c:\>net statistics workstation
This will run a check and provide with the system statistics. Look for the line which reads as “statistics since” where it indicates the stats are from the last system startup time as follows:
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.
1. Right-click on the Taskbar, and click Task Manager. You can also click CTRL+SHIFT+ESC to get to the Task Manager.
2. In Task Manager, select the Performance tab.
3. The current system uptime is shown under System.