about RSOP_SecuritySettingNumeric

  • Thread starter Thread starter leno
  • Start date Start date
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"
 
Is the computer you are querying subject to anything other than the local
GPO? That is, do you have domain policies applying to that machine?



--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy

Script Group Policy Settings with the GPExpert Scripting Toolkit for
PowerShell!
Find out more at http://www.sdmsoftware.com/products2.php

Visit the GPOGUY: http://www.gpoguy.com -- The Windows Group Policy
Information Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related
 
Sorry I don't understand your mean. My computer is managed by workgroup not
by domain,And is there any other way to get the information of rsop such as
account policy?
 
Right, that is the issue. This is a known limitation of RSOP--essentially
local security policy does not store its results in WMI. So, if you wanted
to query things like account policy, you would need to use "traditional
method" such as 'net accounts'

--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy

Script Group Policy Settings with the GPExpert Scripting Toolkit for
PowerShell!
Find out more at http://www.sdmsoftware.com/products2.php

Visit the GPOGUY: http://www.gpoguy.com -- The Windows Group Policy
Information Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related
 
thank you very much .and you time is appreciated
and i try "net accounts",but the information received is limited,some info
such as
"whether the account password accord to the request of complexity or not?"
and "whether use the technology of revertible encryption to store password
for all user in domain ?"
how can i get those information?
 
Back
Top