L
leno
i want to write a VBScript to see my RSOP_SecuritySettingNumeric
code:
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & _
"\root\rsop\computer")
Set colItems = objWMIService.ExecQuery _
("Select * from RSOP_SecuritySettingNumeric")
For Each objItem in colItems
Wscript.Echo "Key Name: " & objItem.KeyName
Wscript.Echo "Precedence: " & objItem.Precedence
Wscript.Echo "Setting: " & objItem.Setting
Wscript.Echo
Next
but i see NOTHING
so i change the code
code:
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & _
"\root\rsop\computer")
Set colItems = objWMIService.InstancesOf("RSOP_SecuritySettingNum eric")
Wscript.Echo "# : " & colItems.Count
then i see "# : 0"
code:
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & _
"\root\rsop\computer")
Set colItems = objWMIService.ExecQuery _
("Select * from RSOP_SecuritySettingNumeric")
For Each objItem in colItems
Wscript.Echo "Key Name: " & objItem.KeyName
Wscript.Echo "Precedence: " & objItem.Precedence
Wscript.Echo "Setting: " & objItem.Setting
Wscript.Echo
Next
but i see NOTHING
so i change the code
code:
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & _
"\root\rsop\computer")
Set colItems = objWMIService.InstancesOf("RSOP_SecuritySettingNum eric")
Wscript.Echo "# : " & colItems.Count
then i see "# : 0"