How to use the WMI classes "Win32_LogicalFileAuditing" and "Win32_SecuritySet

I have to extract details about file, directory and registry auditing setting.
I am not able to use the above WMI classes directly to get the required data.
so can anyone tell me how to use those classes to get the required data?
[237 byte] By [Varshani] at [2007-12-28]
# 1
you could use the System.Management/System.Management.Instrumentation namespaces which will be seen when you add a reference to System.Management in your project, which allows you to execute WMI queries - would this be something you are after?
ahmedilyas at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2

You can download the WMI SDK from MSDN, lots of information there.


When I used WMI I have had to look at some of the scripts on MSDN and convert them, looked on some of the other sites I have used and none mention or make use of these classes.

Rabtok at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 3

Really neat tool from MS web site called WMICodeCreator, you just set language, select Class then you get a choice of class properties, select one and the code appears in the text window ready to cut and paste. It does more...

Rabtok at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Language...