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
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
user.InvokeGet("IsAccountLocked")
call, but it always returns false no matter the if the account is locked or not.
If anybody has any ideas it would be very helpful or a link that might help me out.
Thanks