R
rschneid76
Hello all,
Am trying to get a script using WMIC commandline that outputs the
eventviewer of a certain server on a certain date. So far I have
this..
WMIC /node:"myserver" NTEVENT WHERE "EventType<3 AND LogFile !=
'Security' AN
D TimeGenerated = '20050330'" GET LogFile, SourceName, EventType,
Message, TimeGenerated /FORMAT:htable >c:\mysystem.htm
but as the TimeGenerated is in a different format my queries for that
date come up empty. Just wondering if anyone has any ideas how i can
format it so i can get a normal datetime output? I am assuming i have
to modify the select statement somehow with a function, but i havent
found anything about this in my searches of the web. Any help would be
greatly appreciated!! thanks
caraculo4
Am trying to get a script using WMIC commandline that outputs the
eventviewer of a certain server on a certain date. So far I have
this..
WMIC /node:"myserver" NTEVENT WHERE "EventType<3 AND LogFile !=
'Security' AN
D TimeGenerated = '20050330'" GET LogFile, SourceName, EventType,
Message, TimeGenerated /FORMAT:htable >c:\mysystem.htm
but as the TimeGenerated is in a different format my queries for that
date come up empty. Just wondering if anyone has any ideas how i can
format it so i can get a normal datetime output? I am assuming i have
to modify the select statement somehow with a function, but i havent
found anything about this in my searches of the web. Any help would be
greatly appreciated!! thanks
caraculo4