I've been looking for a while to find a consistent way of finding uptime in Windows. It appears that Windows does not natively come with an uptime reporting program, even though you can install one (unlike Linux or other Unix-like systems). They do have other system commands, but you have to sift through the output of these programs to find out what information you want. From what I've seen, here is the most consistent commands:
Windows XP Professional:
To get the uptime of a system, start up a command window by clicking on Start -> Programs -> Accessories -> Command Prompt.
In the command prompt window, type in
systeminfo | find "Up Time"
and press Enter. This will isolate the line of information containing the uptime of the system.
Windows XP / 2000 / 2003:
Start up a command window by clicking on Start -> Programs -> Accessories -> Command Prompt.
In the command prompt window, type in
net statistics workstation | find "since"
and press Enter.
Linux / Unix:
It is much easier on a Unix / Linux type system, just to type in command line (without the "$"):
$ uptime
No comments:
Post a Comment