This tutorial explains how to check the uptime on your Windows server or personal computer (the time that a particular server or personal computer has been working).
To check the uptime on your Windows server is useful when the server has crashed and restarted itself and you find it after couple of hours.
Then to check on the logs will take much time if many processes are ran in the same time.
Also if you need to do an update you may use the uptime for certain scripts or scheduled jobs.
To view the uptime on Windows server simply type the following command in the command prompt:
C:\Documents and Settings\%User%> systeminfo |find "Up Time"
The output will be the server uptime.
System Up Time: 0 Days, 1 Hours, 28 Minutes, 55 Seconds
If you do not know how to access command prompt on your server please check this tutorial: How to open a command prompt .
‘Systeminfo’ is a command line tool which allows the server administrator to do query for basic system configuration information, including the server uptime.
I have added the so-called ‘pipe’: ‘ | find ‘Up Time’ ‘ – to screen only the uptime part.
Otherwise you should look for it trough the whole listing which is looking like this:
Host Name: COMPUER
OS Name: Microsoft Windows XP Professional
OS Version: 5.1.2600 Service Pack 3 Build 2600
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Product ID: XXXXX-XXXXX-XXXXX-XXXXXX
Original Install Date: 7/8/2008, 4:53:20 PM
System Up Time: 182 Days, 8 Hours, 51 Minutes, 9 Seconds
System Manufacturer: ECS
System Model: G31T-M
System type: X86-based PC
Processor(s): 1 Processor(s) Installed.
: x86 Family 6 Model 15 Stepping 13 GenuineIntel ~1596 Mhz
BIOS Version: 082307 - 20070823
Windows Directory: C:\WINDOWS
System Directory: C:\WINDOWS\system32
Boot Device: \Device\HarddiskVolume1
System Locale: en;English
Input Locale: en-us;English (United States)
Time Zone: (GMT+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius
Total Physical Memory: 1,014 MB
Available Physical Memory: 160 MB
Virtual Memory: Max Size: 2,048 MB
Virtual Memory: Available: 1,997 MB
Virtual Memory: In Use: 51 MB
Page File Location(s): C:\pagefile.sys
Logon Server: \\Computer
Hotfix(s): 132 Hotfix(s) Installed.
: File 1
: KB973346 - Update
NetWork Card(s): 1 NIC(s) Installed.
: Realtek RTL8139/810x Family Fast Ethernet NIC
Connection Name: Local Area Connection
DHCP Enabled: Yes
DHCP Server: 10.0.0.1
Systeminfo parameter list:
/S system Specifies the remote system to connect to.
Example: SYSTEMINFO /S 10.0.0.1 – this will pull up information for server with IP address 10.0.0.1
/U [domain\]user Specifies the user context under which the command should execute.
Example: SYSTEMINFO /S 10.0.0.1 /U administrator – here the connection will be again to IP address 10.0.0.1 with the privileges of user ‘administrator’
/P [password] Specifies the password for the given user context. Prompts for input if omitted.
/FO format – Specifies the format in which the output is to be displayed. Valid values: "TABLE", "LIST", "CSV".
The default output will be ‘LIST’. If you want to use some of the other two options you can do that with this string:
Example: SYSTEMINFO /FO CSV > systeminfo.csv
Example: SYSTEMINFO /FO TABLE > systeminfo.txt
/NH – Specifies that the "Column Header" should not be displayed in the output. Valid only for "TABLE" and "CSV" formats.
As per the description this will not allow the output the headers of the columns which ‘Systeminfo’ usually do.
In general ‘Systeminfo’ is very useful internal command, which can be used in scripts and for additional information via remote console, but the purpose of this tutorial was to explain how to check the uptime on a windows server.
- check server uptime remotely (18)
- check server up time (13)
- check server uptime (13)
- remote system information uptime (1)
- how to find system uptime by ip (1)
- how to check the uptime on a remote server (1)
- how to check server uptime remotely (1)
- how to check pc uptime by ip address (1)
- check sever uptime through command prompt (1)
- uptime script for multiple servers in command prompt (1)
Filed Under: Windows XP
About the Author: Anthony G. is an IT specialist with more than 9 years of solid working experience in the Web Hosting industry. Currently works as server support administrator, involved in consultative discussions about Web Hosting and server administration. One of the first writers in the Onlinehowto.net website, now writing for Free Tutorials community - he is publishing tutorials and articles for the wide public, as well as specific technical solutions.