Thursday, October 8, 2009

How to find Window's OS uptime?

Surprising?? Huh?? Unix Administrator talking about windows :)

But like Unix, I tend to keep my laptop up and running (or standby). And sometime, I need to know the uptime because some of Microsoft updates need reboot to take effects.

Here is how to find windows's uptime:

C:\>net statistics server
Server Statistics for \\laptop123

Statistics since 10/7/2009 6:15 PM

Sessions accepted 1
Sessions timed-out 0
Sessions errored-out 0

Kilobytes sent 0
Kilobytes received 0

Mean response time (msec) 0

System errors 0
Permission violations 0
Password violations 0

Files accessed 0
Communication devices accessed 0
Print jobs spooled 0

Times buffers exhausted

Big buffers 0
Request buffers 0

The command completed successfully.

Note the green line is the uptime (or the time system last booted).

More Unix way is shown below:

C:\>net stats srv | grep since
Statistics since 10/7/2009 6:15 PM

No comments: