Re: Finding out how the machine last rebooted and when.



You should write some code to check the operating system event log.
On windows 2003 each time you reboot your computer a new entry is added
to the system log with event id 1074, but on XP you may have to enable
this service since it usually comes disabled.

You can find info on how to enable de Shutdown event tracker here...
http://support.microsoft.com/default.aspx?scid=kb;en-us;293814

That would cover a graceful shutdown

And if by a system crash you mean bsod there is an event entry too i'm
not very sure right now but i think its event id 1003

Hope it helps

UJ wrote:
How can I find out when the machine last rebooted and where it was a system
crash or an regular reboot.

This would be on XP.

TIA - Jeff.

.



Relevant Pages

  • Auto reboot
    ... servers that reboot at 8:39 am. ... The system event log has this entry: ...
    (microsoft.public.windows.server.general)
  • Re: SBS 2K3 reboots at noon everyday
    ... reboots the server, and the permission issue was apparently crashing the ... it is the System Event Log entry to which I am refering. ... > events and save the files, it uses the System account. ... it does not reboot at noon now. ...
    (microsoft.public.windows.server.sbs)
  • Re: Innocent Virgins
    ... Looked in the startup folder & remove program if found ... empty the recycle bin and reboot ... When I rebooted I had a porn window on my desktop, ... > entry in the registry, ...
    (microsoft.public.security)
  • Re: lost configuration after reboot
    ... >> i reboot my new system after a week or so of runtime. ... >> an entry in the routing table to the gateway was missing. ... Or simply add the gateway-adding command to ... >Setup your iptables configuration. ...
    (Debian-User)
  • Re: How to add an entry to TNSNAMES.ORA?
    ... you dont need to reboot when you add any entry to the tnsnames.ora, ... just check tnsname via tnsping in the command promt ... if I add the following entry to the TNSNAMES.ORA: ...
    (comp.databases.oracle.server)