Is it possible to log startup and shutdown times in Windows XP? I mean logging these events in the system event log.
For example I can hack a jscript like this
// this is log_startup.js var shell = WScript.CreateObject("WScript.Shell"); shell.LogEvent(0, "Startup timestamp = " + Date() );
and then adding it
cscript /nologo log_startup.js to the startup menu folder but I would prefer a more Windows "native" way (and, by the way, I do not know how to detect the shutdown).