Uptime for Windows

Updated , First Published by Pete Freitag

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

Unfortunately no such tool comes with windows, but there are a few ways to determine the date you computer was last started. Type the following in to the command prompt.

systeminformation

One of the oldest methods to find the uptime of a Windows server is to use the net statistics command. This technique worked as far back as Windows NT and Windows 2000:

net statistics server

It will output something like:

Server Statistics for \\PETE
Statistics since 6/9/2002 11:09 AM

This still works on a Windows Server 2022 machine, but you have to use net statistics workstation instead of server.

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"

Comments

Pete Freitag

Note this should also work on Windows 2003 Server

Kyle Fox

You can get the uptime utility from Microsoft on this page: http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default.asp

sysinfo

this will do it, open cmd and type systeminfo | find "Up Time"

Michael BUckingham

Command Line for Windows uptime: type Systeminfo at the command line prompt, scroll down to uptime.

Gopi Krishna

Thanks a lot the commands was so simple and iam grateful to the guy who posted this.

Thomas Black

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.

Tom

Just start windows task mangager it show uptime of your pc