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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top