Yes, I know that the value of many policies is stored in the registry, however many are not (and in fact, the PolicySettings.xls spreadsheet you can download from MSDN says of "Maximum password age" that "Password Policy security settings are not registry keys", so I'm not sure whether the registry key you referenced is actually valid).
And in fact if I use regmon to monitor a program calling NetUserModalsGet(), that registry key is not accessed.
In any case, a registry setting doesn't tell me whether the policy value came from the domain setting settings policy, the local security settings policy, or if I am looking at a domain controller, the domain controller security settings policy.
Main Topics
Browse All Topics





by: jkrPosted on 2007-07-06 at 07:58:56ID: 19432258
Actually, GPO rules are plain registry stored values. The one you're looking for can be found at
CurrentCon trolSet\Se rvices\Net logon\Para meters
/en-us/lib rary/aa374 177.aspx ("Group Policy") and the samples at http://msdn2.microsoft.com /en-us/lib rary/aa375 115.aspx ("Using Group Policy")
/en-us/lib rary/aa373 486.aspx ("Checking the Registry for Policies and Preferences")
HKEY_LOCAL_MACHINE\SYSTEM\
maximumpasswordage REG_DWORD
For general info on GP and coding, see http://msdn2.microsoft.com
To illustrate the not-so-special nature of the whole area, see http://msdn2.microsoft.com