Thursday, March 16, 2006

Uptime for Win2k, 2k3, XP, & NT

So I have been using Unix and Linux a lot more lately because of my job. This has been good because I had gotten a little rusty and I enjoy the Linux environment. Recently I was trying to determine the uptime of one of our windows servers without having to search the Event logs for the last time the machine rebooted. Unfortunately windows currently does not have a command like "uptime" in *nix. However, I found something that is almost as good. Drop to a command prompt and type:

> net statistics server

It will output something like:

*****
Server Statistics for \\[your machine name]
Statistics since 1/9/2006 11:09 AM
...
*****

Not quite as pretty, but hey it works... :)

No comments: