Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: WMI EventLog

by Mitch (Sexton)
on Feb 11, 2003 at 20:43 UTC ( [id://234525]=note: print w/replies, xml ) Need Help??


in reply to Re: WMI EventLog
in thread WMI EventLog

You got it, thanks. There were two problems...1) The property should be LogFile not LogFileName. The source I used had it listed wrong. 2) LogFile is a string so it needs to be in ' '. The line should read:
if ($aevents = $Wmi->ExecQuery("SELECT * FROM $Win32_Class WHERE LogF +ile='Application' AND Eventcode=1000")) {


Thanks for the insight.

Mitch

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://234525]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found