Active Directory Properties - Lock and Deactivate Account

  • Thread starter Thread starter Sargas Atum
  • Start date Start date
S

Sargas Atum

Hi all,

Do anybody know, how the properties for unlocking the User ( after he
mistyped password three times) and for activating and deactivating an
account are (names or how do I get at them?) ? Are those two different
properties? Or how can I read or manipulate them.


Thx
a.s.
 
Do anybody know, how the properties for unlocking the User ( after he
mistyped password three times) and for activating and deactivating an
account are (names or how do I get at them?) ? Are those two different
properties? Or how can I read or manipulate them.

The attribute you want to modify is userAccountControl using the
ADS_USER_FLAG_ENUM values
http://msdn.microsoft.com/library/en-us/adsi/adsi/ads_user_flag_enum.asp

For an example showing how to enable/disable accounts see:
http://msdn.microsoft.com/library/en-us/sds/sds/enabling_and_disabling_t
he_user_account.asp

HTH,
Tim
 
Back
Top