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

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Torcaza <cgrappa@xxxxxxxxx> wrote:
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


System.Diagnostics.EventLog.


--
Thomas T. Veldhouse
Key Fingerprint: 2DB9 813F F510 82C2 E1AE 34D0 D69D 1EDC D5EC AED1


.



Relevant Pages

  • Re: Auto Reboots
    ... Why would anyone reboot Windows nightly? ... periodic rebooting to refresh RAM and other resources. ... About the Windows shutdown event tracker, ...
    (comp.databases.pick)
  • Re: Reboot Win2k3 Terminal Server
    ... > It's a simply, seemingly stupid question, too. ... > find the server simply didn't reboot. ... Disable the Shutdown Event Tracker and see if it helps: ... Microsoft MVP Scripting and WMI, ...
    (microsoft.public.windows.server.scripting)
  • Re: Shutdown Event Tracker
    ... > Does the Shutdown Event Tracker, which waits for user input, ... > interfere with (delay, prevent) services starting up on reboot? ... But finally this may depend from the importance of a certain server. ...
    (microsoft.public.windows.server.general)
  • Re: Uptime.exe Reporting Error
    ... Check to see if the Shutdown Event Tracker in your group policy on the ... if it is then no event id's for a shutdown or reboot would be ... and subsequently uptime.exe would be inaccurate. ...
    (microsoft.public.windows.server.general)