If someone wants to take this further I think it would be of value to all.What I would like to do is use all the data that is reported via Uptime.exe. If you add the /a /d switches you can get a lot more info then just the "system uptime".
Here is an example of the output using the following command
Shell '%comspec% /c "uptime.exe \\$server /a /d:01/01/2002" >C:\uptime.txt'
(contents on c:\uptime.txt)
Uptime Report for: \\Server
OS: Windows NT 4.0 (Build 1381), Service Pack 6, Multiprocessor Free.
Time Zone: Eastern Standard Time
System Events as of 2/5/02 5:12:45 PM:
Date: Time: Event: Comment:
---------- ----------- ------------------- -----------------------------------
2/1/02 6:01:48 PM Shutdown Prior uptime:62d 7h:15m:52s
2/1/02 6:09:22 PM Boot Prior downtime:0d 0h:7m:34s
Current System Uptime: 3 day(s), 23 hour(s), 4 minute(s), 12 second(s)
--------------------------------------------------------------------------------
Since 1/1/02: (Last 35 Days)
System Availability: 99.9853%
Total Uptime: 35d 17h:5m:11s
Total Downtime: 0d 0h:7m:34s
Total Reboots: 1
Mean Time Between Reboots: 35.72 days
Total Bluescreens: 0
Total Application Failures: 0
Is anyone brave/smart enough to strip the data and put it into the .ini file so that is can be posted into the HTML page.
DR