Returns information about account policy settings assigned by using Group Policy
strComputer = "."Set objWMIService = GetObject _("winmgmts:\\" & strComputer & "\root\rsop\computer")Set colItems = objWMIService.ExecQuery _("Select * from RSOP_SecuritySettingNumeric")For Each objItem in colItemsWscript.Echo "Key Name: " & objItem.KeyNameWscript.Echo "Precedence: " & objItem.PrecedenceWscript.Echo "Setting: " & objItem.SettingWscript.EchoNext
This is a VB Script, this can be used by saving the file in .vbs file