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:

The output will be the server uptime.

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:

Systeminfo parameter list:

/S system Specifies the remote system to connect to.

Example: SYSTEMINFO /S – this will pull up information for server with IP address

/U [domain\]user Specifies the user context under which the command should execute.

Example: SYSTEMINFO /S /U administrator – here the connection will be again to IP address 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.


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 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