Is there a way to read password policies through WMI RSOP_XXX classes?

All of them are in the root directory \ RSOP \ Computer. The only class from which I got non-empty results is RSOP_RegistryPolicySetting , and only it gave me settings to configure Windows Update and restore the system.

I know that our network has password policies (age, length, etc.), but requests on the following classes gave only empty updates:

 RSOP_ScriptPolicySetting RSOP_SecuritySettingNumeric RSOP_SecuritySettingBoolean RSOP_SecuritySettingString 
+4
source share
1 answer

Should it be through WMI?

If you use a domain, Microsoft Scripting Guys has an article How long before my password expires? ... but it uses ADSI to read policies from Active Directory, not policies on the local computer.

0
source

All Articles