title: Cannot find the Locked property in Active Directory (C#)
body: <p>First off I know there have been many posts on this topic however all of the information that I have found does not help in my situation.  What is happening is that I cannot find where the property is for locking out a user in AD.  I have used</p>
  
  <p><a href="http://www.codeproject.com/KB/system/everythingInAD.aspx" rel="nofollow noreferrer">link text</a> </p>
  
  <p>for everything else with AD and it has all worked however, the bit map the userAccountControl does not change if an account is locked out.  Trying to access the lockoutTime returns an exception saying that it cannot find the property.  The only thing that remotely works is the </p>
  
  <p>user.InvokeGet("IsAccountLocked")</p>
  
  <p>call, but it always returns false no matter the if the account is locked or not.</p>
  
  <p>If anybody has any ideas it would be very helpful or a link that might help me out.</p>
  
  <p>Thanks</p>