query Win32_NTLogEvent

  • Thread starter Thread starter barabba72
  • Start date Start date
B

barabba72

I'm wondering how would be possible to modify the query below as to get
both Application and System Events and avoid having to run two parallel
scripts.

Thanks in advance for any help!


strWQL = "SELECT * FROM __InstanceCreationEvent WITHIN 15 WHERE
TargetInstance ISA 'Win32_NTLogEvent'" & _
"AND TargetInstance.Type = 'Error' AND TargetInstance.LogFile =
'Application'"
 
.... AND (targetinstance.logfile='application' OR
targetinstance.logfile='system')"

You don't need the WITHIN clause.
 
Back
Top