Author Topic: WMI Question (RSOP_SecurityEventLogSettingNumeric)  (Read 2154 times)

krasdude

  • Newbie
  • *
  • Posts: 21
WMI Question (RSOP_SecurityEventLogSettingNumeric)
« on: February 05, 2015, 06:53:51 am »
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

  • Tech Support
  • *****
  • Posts: 3490
    • WinBatch
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade