Can anyone get uptime.exe to run either the /s or /p:n switches on a Windows Server 2008 box without crashing?
I realise it's a NT tool and no longer supported, but it worked fine on 2003. I've heard there's a version included in Server core, so I was wondering if that works better on 2008?
If uptime.exe is a no go, what do you use instead to get the system availability history?
Using WMI: http://gallery.technet.microsoft.com/ScriptCenter/en-us/a20766d2-6cc8-4d70-920e-c14506bf53a6
I use psinfo out of the PSTools suite. I haven't tested on 2k8, but it seems to get regularly updated by the author, who now works for Microsoft.
You can get this information via SNMP on most devices, so I would expect you can do so with Server 2008.
You can use Start -> Run:
cmd /k net statistics server
. Look for line Statistics since - that is your uptime.Also see this site for even more possibilites.
I agree entirely with fenster. uptime /s gives far better statistics than the alternative suggestions. It's not just the current uptime period we're interested in, it's all the other info that uptime /s supplies. Try running it on a 2003 server and see what we mean.
Take a look at this utility:
UPTIME2.exe
http://techibee.com/tools/say-hello-to-uptime2-exe-alternative-for-uptime-exe/1728