WMI & Eventlogs
This example from "Microsoft Windows 2000 Scripting Guide" demonstrates how
to query the logs based on the TimeWritten property:
http://www.microsoft.com/technet/scriptcenter/guide/sas_log_lfas.mspx
Note the format for dates is yyyymmddHHMMSS.******-UUU, where yyyy is the
year, mm the month, dd the day, HH the hour (24 hour format), MM the
minutes, SS the seconds, ****** the milliseconds, and UUU the number of
minutes of offset from UTC.
--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
|