Re: Time since last reboot?

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Jul 10, 2:07 pm, John John <audetw...@xxxxxxxxxxx> wrote:
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." <F1ComNOS...@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.- Hide quoted text -

- Show quoted text -

Hello Alain,

Not quite sure what you need in "the time since the last reboot", but
if you just want to know the precise time a computer was logged into
then you could run a batch file at startup. It would look like this:

echo logon %username% %computername% %date% %time% >> C:\logon.log

Copy the above line into Notepad and save as logon.bat
Drag a shortcut of the .bat file to your startup folder (usually in
the Start=> Programs menu)
At every logon, the computer name, username and logon time is appended
to the log file indicated. Of course, you can change the location as
you wish.

If you're looking for a GUI to track computer usage time then this
freeware may help:

PC On/Off Time
http://www.snapfiles.com/get/pconoff.html

.



Relevant Pages

  • Re: Time since last reboot?
    ... information programmatically using the Windows API) from which I can ... determine the time since the last reboot of a Windows XP machine? ... then you could run a batch file at startup. ... At every logon, the computer name, username and logon time is appended ...
    (microsoft.public.windowsxp.general)
  • Re: Explorer doesnt start anymore
    ... How to start Windows in Safe Mode Windows XP ... To isolate problems using Selective Startup options ... You can try disabling half of the startup entries, reboot and see if you ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: pc restarts on its on
    ... my pc is set to complete memory dump. ... This would help in determining if there is an illegal startup crashing your system. ... There you will find the option to reboot upon an error. ... I went into safe mode and ran a virus scan w/ my panda titanium, regcure for bad registries, noadware and lavasoft. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: pc restarts on its on
    ... my pc is set to complete memory dump. ... in determining if there is an illegal startup crashing your system. ... it's just a black screen and I have to reboot. ... I went into safe mode and ran a virus scan w/ my panda ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: continuous reboot after logging in
    ... | with patches and SP4 for a while) to continuously reboot right after ... MSconfig again ... this time to test if it was a startup item ... item" causing the issue. ...
    (microsoft.public.win2000.general)