WMI Select statement for Group Policies

L

Luke Edson

I'm trying to filter an Active Directory Group Policy
with WMI by checking to see if a specific registry key
exists, so far I have:
SELECT * FROM Win32_RegistryAction WHERE Key
= "Software\\MyApp\\MyApp"
Doesn't seem to work, & the documentation for that
class/method is quite bare, any help?

Thanks, - Luke
 
P

Peter Falz

Hi Luke Edson,

first at all, sorry for my bad english.

Luke Edson said:
I'm trying to filter an Active Directory Group Policy
with WMI by checking to see if a specific registry key
exists, so far I have:
SELECT * FROM Win32_RegistryAction WHERE Key
= "Software\\MyApp\\MyApp"
Doesn't seem to work, & the documentation for that
class/method is quite bare, any help?

I think, that with the class "Win32_RegistryAction" or other
"...Action"-Classes, such as "FileAction", only then deliver
data, if an Action occured.

In your case: Only at the timestamp, if an action occured
with the Key specified by you, you get data data. Also
i think, that this "Select" runs in an endless loop.

Cioa
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top