PC Review


Reply
 
 
New Member
Join Date: Feb 2006
Posts: 1
 
      21st Feb 2006
I'm trying to write a script that will grab the event logs from a remote computer for a specific day. I've got everything set up just how I want it, except the following line doesn't work:

Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_NTLogEvent WHERE TimeGenerated LIKE " & dayt & " %",,48)

When I try to use colItems for anything I get an error: 0x80041017

dayt is an 8 character string that looks like this: 20060131
It gets set to today's date when the script is run.

If anyone has any idea why this isn't working, or can offer me any help at all it would be most appreciated.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
From where I can download wbemdump.exe file? (to execute WQL quries) Koti Windows XP WMI 1 8th Sep 2005 03:51 PM
Deep WQL Query sedyn Windows XP WMI 0 26th Aug 2005 06:01 PM
Help with WQL query rs Windows XP WMI 1 4th Mar 2005 11:00 PM
WQL & Parameters Aaron Windows XP WMI 3 20th Jan 2005 08:09 PM
WQL DataProvider for ADO.Net Maxim Kazitov Microsoft ADO .NET 1 16th Aug 2004 06:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:44 AM.