WMI Question (RSOP_SecurityEventLogSettingNumeric)

Started by krasdude, February 05, 2015, 06:53:51 AM

Previous topic - Next topic

krasdude

I am trying to read from WMI NameSpace Root/RSOP/Computer, class RSOP_SecurityEventLogSettingNumeric.  I tried the following with no success:

ComputerName = "."
oWMIService = GetObject("winmgmts:\\":ComputerName:"\root\RSOP\Computer")
oItems = oWMIService.ExecQuery("Select * from RSOP_SecurityEventLogSettingNumeric")

If oItems.Count == 0 Then
    Display(2,"","Appears to have failed")
    exit
Else
    ForEach oItem In oItems
       message("",oItem.name)
    Next
EndIf

oItem=0
oItems=0
oWMIService=0
Exit

Can I read from this namespace and if so, what did I miss?

Thanks

Micahel

td

"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade