WMI Select statement for Group Policies

  • Thread starter Thread starter Luke Edson
  • Start date Start date
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
 
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
 
Back
Top