Check uptime on a Windows server

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:

  1. C:\Documents and Settings\%User%> systeminfo |find "Up Time"

The output will be the server uptime.

  1. 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:

  1.  
  2. Host Name:                 COMPUER
  3. OS Name:                   Microsoft Windows XP Professional
  4. OS Version:                5.1.2600 Service Pack 3 Build 2600
  5. OS Manufacturer:           Microsoft Corporation
  6. OS Configuration:          Standalone Workstation
  7. OS Build Type:             Multiprocessor Free
  8. Registered Owner:          
  9. Registered Organization:  
  10. Product ID:                XXXXX-XXXXX-XXXXX-XXXXXX
  11. Original Install Date:     7/8/2008, 4:53:20 PM
  12. System Up Time:            182 Days, 8 Hours, 51 Minutes, 9 Seconds
  13. System Manufacturer:       ECS
  14. System Model:              G31T-M
  15. System type:               X86-based PC
  16. Processor(s):              1 Processor(s) Installed.
  17.                            [01]: x86 Family 6 Model 15 Stepping 13 GenuineIntel ~1596 Mhz
  18. BIOS Version:              082307 - 20070823
  19. Windows Directory:         C:\WINDOWS
  20. System Directory:          C:\WINDOWS\system32
  21. Boot Device:               \Device\HarddiskVolume1
  22. System Locale:             en;English
  23. Input Locale:              en-us;English (United States)
  24. Time Zone:                 (GMT+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius
  25. Total Physical Memory:     1,014 MB
  26. Available Physical Memory: 160 MB
  27. Virtual Memory: Max Size:  2,048 MB
  28. Virtual Memory: Available: 1,997 MB
  29. Virtual Memory: In Use:    51 MB
  30. Page File Location(s):     C:\pagefile.sys
  31. Domain:                    WORKGROUP
  32. Logon Server:              \\Computer
  33. Hotfix(s):                 132 Hotfix(s) Installed.
  34.                            [01]: File 1
  35.                            ….
  36.                            [132]: KB973346 - Update
  37. NetWork Card(s):           1 NIC(s) Installed.
  38.                            [01]: Realtek RTL8139/810x Family Fast Ethernet NIC
  39.                                  Connection Name: Local Area Connection
  40.                                  DHCP Enabled:    Yes
  41.                                  DHCP Server:     10.0.0.1
  42.                                  IP address(es)
  43.                                  [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.

Tags

Filed Under: Windows XP

Anthony Gee 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.

Comments (1)

  1. Guest says:

    this is good

Leave a Reply