Re: Time since last reboot?



Reading the timestamp on the pagefile.sys will give you the starup time. You can also use Systinternal's PsInfo to get the information: http://www.microsoft.com/technet/sysinternals/utilities/psinfo.mspx

John

Alain Dekker wrote:

Thanks! I've now started to look int Event IDs 6005, 6006 and 6008 on your prompting...Next Task: Find out how to read the event list programmatically.

Thanks again,
Alain

"Terry R." <F1ComNOSPAM@xxxxxxxxx> wrote in message news:uHqJ$bxwHHA.4140@xxxxxxxxxxxxxxxxxxxxxxx

On 7/10/2007 10:04 AM On a whim, Alain Dekker pounded out on the keyboard


Is there is any metric on Windows XP (ideally I'd like to get the information programmatically using the Windows API) from which I can determine the time since the last reboot of a Windows XP machine?

Thanks in advance,
Alain

Hi Alain,

In the Event Viewer under System, Source: eventlog, EventID: 6005, shows when the service was started. Usually on startup of the system.

--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.




.