Uptime for Windows 2000, 2003, XP and NT

misc

Almost every unix operating system comes with a utility called uptime that tells you how long your server has been running.

Unfortunitly no such tool comes with windows, but there is a pretty fool proof way to determine the date you computer was last started. Type the following in to the command prompt.

net statistics server

It will output something like:

Server Statistics for \\PETE
Statistics since 6/9/2002 11:09 AM
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"


cfobjective pre-conf training

Related Entries

25 people found this page useful, what do you think?

WAF for CF

Trackbacks

Trackback Address: 86/6B1B915FF6904F091038723576B7E193

Comments

On 11/01/2004 at 10:57:25 PM EST Ashish wrote:
1
Thanks a lot folks!!! This was really a shortcut compared to those perl scripts.

On 11/01/2004 at 10:58:20 PM EST Ashish wrote:
2
Thanks a lot folks!!! This was really a shortcut compared to those perl scripts.

On 05/31/2005 at 12:52:17 PM EDT Pete Freitag wrote:
3
Note this should also work on Windows 2003 Server

On 09/17/2005 at 6:05:13 PM EDT Kyle Fox wrote:
4
You can get the uptime utility from Microsoft on this page:

http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default.asp

On 01/02/2006 at 1:10:47 PM EST Christopher Lindblom wrote:
5
there is a way to see the uptime in windows XP.. just bring up the cmd window, and type systeminfo.. and scroll to System uptime.. ;)

On 01/29/2006 at 2:55:24 AM EST Coopa wrote:
6
Thanks Christopher Lindblom, just what I was looking for :)

On 04/04/2006 at 9:54:49 AM EDT hekp0maht wrote:
7
net statistics server shows statistics for "Seerver" service, not for system, also statisctics shown since last start of service (if started at all). Christopher Lindblom offered better way.

On 05/28/2006 at 11:13:11 AM EDT sysinfo wrote:
8
this will do it, open cmd and type systeminfo | find "Up Time"

On 09/20/2006 at 6:58:45 PM EDT Michael BUckingham wrote:
9
Command Line for Windows uptime:

type Systeminfo at the command line prompt, scroll down to uptime.

On 10/18/2006 at 8:30:16 PM EDT Zoltan wrote:
10
Thanks Christopher !

On 11/13/2006 at 3:14:21 PM EST Jay Ong wrote:
11
You guys rock! Always wondered if Windows had a similiar 'Uptime' utility but never researched it until today. This is brilliant!

On 11/30/2006 at 11:23:13 AM EST Darkstar3d wrote:
12
systeminfo shows uptime, but wish it was as fast as the (U|Li)nux versions.

On 01/19/2007 at 2:37:14 AM EST Anonymous wrote:
13
systeminfo | grep -i uptime

:)

On 08/20/2007 at 12:22:19 PM EDT Jordan wrote:
14
You can also use the systeminfo command.

On 09/29/2007 at 6:48:33 AM EDT Unix Admin wrote:
15
Utilizing the unnamed pipe '|' save a lot of time in scrolling, therefore the command:

C:\>systeminfo | find "Up Time"

immediately displays the system uptime and is the best choice overall for this query.

On 10/19/2007 at 10:39:15 AM EDT minami wrote:
16
You can also download UPTIME program, ex: Homepage: http://clanpkm.free.fr/K1. or search in yahoo.com or google...

On 11/27/2007 at 6:19:46 PM EST Gopi Krishna wrote:
17
Thanks a lot the commands was so simple and iam grateful to the guy who posted this.

On 07/20/2008 at 12:28:20 PM EDT Firoze wrote:
18
In windows 2003 and XP We can use Systeminfo command from command prompt to know System uptime

On 08/26/2008 at 12:43:56 PM EDT David wrote:
19
Classic: on my windows XP box systeminfo has the following for System Up Time: System Up Time: N/A

net statistics server worked great.

On 09/02/2008 at 12:13:53 PM EDT Thomas Black wrote:
20
systeminfo |find "Up Time" |msg * that will create a message box for you. If you prefer the net program switch it to Workstation: net statistics Workstation The computer starts before the server does.

On 11/06/2008 at 5:21:54 PM EST CAVer wrote:
21
Nice that this works on XP home without a download... Thanks!

On 02/15/2010 at 5:07:41 AM EST Muneesh wrote:
22
Do wondows server 2003 need shut down after long uptime? if yes then whats the approx.uptime of a wondows server 2003? And when should i restart it?

Post a Comment




  



Spell Checker by Foundeo

Recent Entries





Basecamp
pfreitag on twitter