in reply to WMI EventLog
print "$aevent{TimeGenerated}\n";
should probably be
print $aevent->{TimeGenerated} . "\n";
Next, try replacing $Wmi->ExecQuery("...")
with the InstancesOf method
$aevents = $Wmi->InstancesOf($Win32_Class)
While this should return all events (not what is wanted), it might reveal the query statement is the problem. I mean, let's try to get something back, and then we can narrow it down. ;)
--Solo
--
You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: WMI EventLog
by Mitch (Sexton) on Feb 11, 2003 at 20:43 UTC |