When the number of failed logon attempts is exceeded, the user account is locked out for a time period specified by the lockoutDuration attribute. The IADsUser.IsAccountLocked property appears to be the property to use to read and modify the lockout state of a user account, but the LDAP ADSI provider does not accurately support the IsAccountLocked property. To obtain and set accurate account lockout data, use the WinNT provider. For more information about using the IsAccountLocked property with the WinNT provider, see Account Lockout (WinNT Provider).
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
