pf » Uptime for Windows 2000, 2003, XP and NT
October 13, 2002
Uptime for Windows 2000, 2003, XP and NT
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 AMThe 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 helpHere are some examples using the net command.
List all accounts in a domain:
net accounts /DOMAINSend 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
- xcopy - Handy tool on windows - December 9, 2003
- FTP Scripts on windows - January 31, 2003
- SSH for Windows - December 6, 2004
- Unix Utils for Windows - November 9, 2004
- Right Click to Open Command Prompt in Directory - July 22, 2004
Trackback Address: 86/6B1B915FF6904F091038723576B7E193
- Finding uptime on Windows 2000 machines Blog of Leonid Mamchenkov
Comments
On 11/01/2004 at 10:57:25 PM MST 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 MST 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 MDT Pete Freitag wrote:
3
Note this should also work on Windows 2003 Server
On 09/17/2005 at 6:05:13 PM MDT 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 MST 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 MST Coopa wrote:
6
Thanks Christopher Lindblom, just what I was looking for :)
On 04/04/2006 at 9:54:49 AM MDT 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 MDT sysinfo wrote:
8
this will do it, open cmd and type systeminfo | find "Up Time"
On 09/20/2006 at 6:58:45 PM MDT 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 MDT Zoltan wrote:
10
Thanks Christopher !
On 11/13/2006 at 3:14:21 PM MST 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 MST 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 MST Anonymous wrote:
13
systeminfo | grep -i uptime
:)
On 08/20/2007 at 12:22:19 PM MDT Jordan wrote:
14
You can also use the systeminfo command.
On 09/29/2007 at 6:48:33 AM MDT 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 MDT 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 MST Gopi Krishna wrote:
17
Thanks a lot the commands was so simple and iam grateful to the guy who posted this.
- CFSCRIPT Cheatsheet
- 3 New Image Effects for ColdFusion 8
- Googlebot to Submit Web Forms
- ColdFusion 8 Update 1 Fixes some Image Processing Quirks
- 10 Most Useful Image Functions in ColdFusion 8
- Speaking at NYC CFUG This Week
- Adobe AIR Tutorial for HTML / JavaScript Developers
- INFORMATION_SCHEMA Support in MySQL, PostgreSQL
Subscribe to my RSS Feed:
RSS
RSS
add to del.icio.us
Pete Freitag is a software engineer, and web developer located in










