Networking, Programming and Graphics - Tutorials
ONLINEHOWTO.net Tutorials Category

Check uptime on a Windows server

Type: Code Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Level: Beginner Networking, Programming and Graphics - Tutorials 
Networking, Programming and Graphics - Tutorials
Date: 2009-Oct-28
Networking, Programming and Graphics - Tutorials
Visited: 1856 times
Networking, Programming and Graphics - Tutorials
Rating: Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Published: Tony Potter

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
Registered Owner:           
Registered Organization:   
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.
                           [01]: 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
Domain:                    WORKGROUP
Logon Server:              \\Computer
Hotfix(s):                 132 Hotfix(s) Installed.
                           [01]: File 1
                           ....
                           [132]: KB973346 - Update
NetWork Card(s):           1 NIC(s) Installed.
                           [01]: Realtek RTL8139/810x Family Fast Ethernet NIC
                                 Connection Name: Local Area Connection
                                 DHCP Enabled:    Yes
                                 DHCP Server:     10.0.0.1
                                 IP address(es)
                                 [01]: 10.0.0.11
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.
Rate this tutorial:                    
Post Comment


    • posted on 2009-Oct-31 | 10:33:42 PM
      this is good
    • ( r0ksio [ at ] gmail . com ),

      posted on 2009-Dec-21 | 09:43:59 AM
      Dogh. I wasn't aware that you can put a pipe in windows command line. '...|find "Up Time"' is really good trick though, to pull up the windows server uptime.
Need a specific tutorial? Do not hesitate and submit a request!
Your e-mail: