Display the up time of a workstation or server. ~ Ask The Admin

Thursday, July 24, 2008

Display the up time of a workstation or server.


Do you ever need command line access to see how long a machine has been up for? This morning I did. I needed to prove that a machine 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_


Comments (9)

Loading... Logging you in...
  • Logged in as
wouldn't the event log spell that out?
if you go into a command prompt and type "systeminfo" towards the top of the information is actual update, not the date of last reboot, it'll display how long it has been!
I tried both the "net statistics workstation" and the "systeminfo" commands, but the windows that came up only stayed there for about one second and then disappeared – certainly too fast for me to read! How do I get the window to stay?
1 reply · active less than 1 minute ago
First go to the command prompt by going to start run and typing in CMD. Then at the dos prompt type in your "net statistics workstation" minus the quotes of course.

---
I use bginfo on all my servers, that way I know which machine I'm logged into. It can tell you all kinds of good stuff about the machine at a glance.
http://technet.microsoft.com/en-us/sysinternals/b...
Anybody know an equivalent Unix command for that?
For *NIX try 'uptime', for the Win32 equivalent, go here (this is a Microsoft link) http://download.microsoft.com/download/winntsrv40...

Try 'uptime /a' on your system to get a nice set of information.

Post a new comment

Comments by