running wmi query fails on certain computers.
- From: barabba72@xxxxxxxxxxx
- Date: 29 Oct 2005 16:30:03 -0700
Hi guys,
I wonder, you see the two queries below. The one that queries both
application and system logs (the one on the bottom) does not work on
certain computers - Windows 2000 Advanced Server - Windows 2000
domain). The same query works on other apparently similar computers.
If I run the query (the one on the top) that only queries the
application log it works ok.
The problem is that it does not produce any errors, it simply doesn't
fire any events.
The queries are always ran using domain admin credentials.
I would appreciate some help on this !
Thanks and Regards.
'OK
strWQL = "SELECT * FROM __InstanceCreationEvent WITHIN 15 WHERE
TargetInstance ISA 'Win32_NTLogEvent'" & _
"AND TargetInstance.Type = 'Error' AND TargetInstance.LogFile =
'Application'"
'NOT OK
strWQL = "SELECT * FROM __InstanceCreationEvent WITHIN 15 WHERE
TargetInstance ISA 'Win32_NTLogEvent'" & _
"AND TargetInstance.Type = 'Error' AND TargetInstance.LogFile =
'Application' OR targetinstance.logfile='system'"
Set objEventSource = objWMIService.ExecNotificationQuery(strWQL)
.
- Prev by Date: Sessions not working correctly on ASP page
- Next by Date: Re: function to get names from text file
- Previous by thread: Sessions not working correctly on ASP page
- Next by thread: Registry for MSN Messenger
- Index(es):
Relevant Pages
|