I'm not familiar with WMI, but here are a few pointers that may help:
$aevents = $Wmi->ExecQuery(...); print "The error code is ", Win32::OLE->LastError(), "\n";
In reply to Re: WMI EventLog
by VSarkiss
in thread WMI EventLog
by Mitch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |