Record startup/shutdown times

  • Thread starter Thread starter Dwayne
  • Start date Start date
D

Dwayne

I've searched high and low and all I can find are programs
that are pretty much spyware/keyloggers for recording the
startup and shutdown times in Windows. Does anyone know
of something already built-in to Windows that records the
time that a system starts up and shut downs? Also is
there a way to record when a user logs into the computer?

I would like these entries to be logged to the Event
Viewer of our Embedded systems.

Thanks for you input.
 
Dwayne,
For the logging on/off of users I would try something like this when the
user logs on:

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colComputer = objWMIService.ExecQuery _
("Select * from Win32_ComputerSystem")
For Each objComputer in colComputer
Const EVENT_SUCCESS = 0
Set objShell = Wscript.CreateObject("Wscript.Shell")
objShell.LogEvent EVENT_SUCCESS, _
"Logged on: " & objComputer.UserName
Next

*the source will show up as WSH

as far as logging when the computer boots or shutdown you could easily make
something like this a service, or use group policy editor to mention some
options.

Regards,

Sean Gahan
 
Hi,

You can try using the MS BootVIS tool. it enbles you to monitor the all boot
process and analyse it graphically.
it shows you how long every phase took and also helps optimizing it a bit.

hope it helps,

YaronM
 
Dwayne,

You can do either:
- Enable user logon audit.
- Setup logon/shutdown scripts to do the logging (search this NG archive for the appropriate reg.values)
- Change msgina.dll to have any logging you prefer.
 
Back
Top