Display the up time of a workstation or server.
Do you ever need command line access to see how long a Windows Server has been up for? This morning I did. I needed to prove that a machine (Windows Server 2003) was up last night at 3 am when a critical process was going down. Someone flucked up and it sure wasn’t me! So…
Using one of my favorite command line commands NET I will show you quickly how to display your Windows up-time:
net statistics workstation
This will show you a similar screen to this:
The first line across the top shows when the machine was last rebooted along with some other geeky goodness. Do you have an easier/quicker/more obscure way of doing this?
_TheObscureAdmiN_
| Print article |


about 2 years ago
Another command to diplay uptime is:
systeminfo
Try it!
Works on most Windows versions.
For systeminfo parameters, go to:
http://technet.microsoft.com/en-us/library/cc773342(WS.10).aspx
about 2 years ago
It sure does. Thanks BosseWeb for the tip! We never stop learning around here!
about 2 years ago
Here’s a few more ways to get it.
net statistics server(or net stats srv for win2k).
Try downloading and then running
uptimecourtesy of technet:http://support.microsoft.com/kb/232243
Want the obscure way? View your network adapter’s status. One of the listed properties will be “Duration” which is, typically, when the thing booted.
Fun stuff :-)
about 2 years ago
SysInternals tool psinfo also provides uptime stats – see http://technet.microsoft.com/en-us/sysinternals/bb897550.aspx
about 2 years ago
Thanks Martin!
about 2 years ago
Awesome keep the tips coming!
about 2 years ago
So uptime.exe is a great tool that will parse the event log and show you every time that the server has been rebooted and why:
http://support.microsoft.com/kb/232243
if you want to go even deeper you can even use powershell to see the uptime of a service!
http://thepowershellguy.com/blogs/posh/archive/2007/03/01/hey-powershell-guy-how-can-i-get-the-uptime-of-a-service.aspx