Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Determine Last Restart date of an NT Server 2

Status
Not open for further replies.

JohnBates

MIS
Feb 27, 2000
1,995
US
Hi,

I'm developing a Visual Basic app that will display certain operations-related information about our NT servers.

I'm stumped as to how to determine when the server was last rebooted. Where is that date/time stored?

Thanks, John
 
Thanks rubbaninja,

Anyone else know how I can do this with built-in system commands ?

 
wow ! Thanks alot F1lby.

I'm experimenting with Microsoft's uptime.exe and it is great.

John
 
If you're looking for built-in system commands, take a look at an NT command, "net statistics", which apart from providing all the vital network stats also shows the startup time of an NT server or workstation.

"net statistics server |more" for server side stats

"net statistics workstation |more" for workstation side stats

The "|more" part is important here as the start time is displayed at the top of the command output.

Hope this is what you're looking for.

Mubashir
 
You can also look at the date and time of pagefile.sys.
 
Please help. I am using Microsoft's uptime.exe v1.01. I would like to use uptime.exe, however, with a text file of target servers. I have heard that this can be done with the /f switch. (uptime.exe /f:FILE_NAME) The v1.01 version that I have does not have the /f switch, but I think Microsoft's v2.00 does. I can not seem to find v2.00 any where. Version 2.00 supposedly has the capability to pipe its output to a csv file.

Does anybody know where I can find Microsoft's uptime.exe v2.00? If not... do you have any other suggestions on how I can use the command against a list of servers?


Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top