IADsUser Property: IsAccountLocked

Property Name
IsAccountLocked

Property Type
Boolean

Description
Indicates whether an account is locked because of intruder detection.

Remarks
For SetInfo, this value can be cleared to unlock a previously locked account. This value cannot be used to lock a previously locked account.

Example

Dim UserObject As IADsUser
Set UserObject = GetObject("NTDS://DomainName/UserName")
Debug.Print UserObject.IsAccountLocked

 

See Also