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"



Related Entries

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

Trackbacks

Trackback Address: 86/6B1B915FF6904F091038723576B7E193

Comments

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

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

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

On 09/17/2005 at 8: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 3: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 4:55:24 AM EST Coopa wrote:
6
Thanks Christopher Lindblom, just what I was looking for :)

On 04/04/2006 at 11: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 1:13:11 PM EDT sysinfo wrote:
8
this will do it, open cmd and type systeminfo | find "Up Time"

On 09/20/2006 at 8: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 10:30:16 PM EDT Zoltan wrote:
10
Thanks Christopher !

On 11/13/2006 at 5: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 1:23:13 PM EST Darkstar3d wrote:
12
systeminfo shows uptime, but wish it was as fast as the (U|Li)nux versions.

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

:)

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

On 09/29/2007 at 8: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 12:39:15 PM 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 8: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 2: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 2: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 2: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 7:21:54 PM EST CAVer wrote:
21
Nice that this works on XP home without a download... Thanks!

On 02/15/2010 at 7: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?

On 07/30/2010 at 8:48:19 PM EDT Tom wrote:
23
Just start windows task mangager it show uptime of your pc

On 12/01/2010 at 10:53:38 PM EST RooBah wrote:
24
Task Manager FTW! It will show the Logon Date.

On 03/01/2011 at 7:40:58 AM EST Firsov Alexey wrote:
25
also we can use mini tool from http://forum.oszone.net/thread-200780.html (in Russian). This tool show current uptime of your PC.

On 03/09/2011 at 6:28:24 PM EST beabounda wrote:
26
hello there, its a nice day outside today, dont you think? winter almost gone!!

On 08/04/2011 at 1:48:27 AM EDT Gatis Avots wrote:
27
Hi, Just wanted to tell there is also the http://www.windowsuptimemonitor.com that allows to track uptime, user logins and program usage history. Reporting features are included.

Post a Comment




  



Spell Checker by Foundeo

Recent Entries



foundeo


did you hack my cf?