Re: Help with __InstanceCreationEvent class

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Stivie S. (stefan.suesser_at_computacenter.com)
Date: 03/18/04


Date: Thu, 18 Mar 2004 06:41:08 -0800

Hi Chris,

please have a look at my 2nd post that gives an example of how to retrieve the information you requested using the CIM_DataFile class instead of the CIM_DirectoryContainsFile class that you used.

When you are looking for some help in getting a jump-start to WMI, I recommend the "WMI Scripting Primer" articles from the MSDN Scripting Clinic. Here are the links:
Part 1: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html/scripting06112002.asp
Part 2: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html/scripting08132002.asp
Part 3: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html/scripting01142003.asp

In addition, I always use the MSDB library for a complete reference of all WMI classes. Here's the entry point into the "world of WMI":
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_start_page.asp

If your are looking for examples, the Windows 2000 Scripting Guide (which is available online from the TechNet online page) contains lots of sample code and quite good explanations. Here you go:
http://www.microsoft.com/resources/documentation/windows/2000/server/scriptguide/en-us/default.mspx

OK - now you should have something to do on your next weekend :=)