I am trying to search multiple machine's Event log for several events.
I'm trying to do it in one pass, and I think I'm close.
This query does not return any data when run against a machine with known
events.
Can anyone give me a hand?
Set colLoggedEvents = objWMIService.ExecQuery _
("Select * from Win32_NTLogEvent Where " _
& "(Logfile = 'System' and EventCode =
'1054')"_
& "Or (Logfile = 'System' and EventCode = '1000')" _
& "Or (Logfile = 'System' and EventCode = '1030')" _
& "Or (Logfile = 'System' and EventCode = '1085')" _
& "Or (Logfile = 'System' and EventCode = '5')")