Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 03, 2010 08:03 AM by justin-clarke
May 22, 2008 04:46 AM|LINK
I want disable accounts from active directiory..which property will give me the detail that weather this account is disable or not ??
Thanks in advanced,
May 22, 2008 04:50 AM|LINK
Please see this link it will help you..
May 22, 2008 05:06 AM|LINK
Thanks for your reply...but i want to handle it in coding, i just want that, which property of AD user says me that , weather this account is disable or not..
May 22, 2008 05:33 AM|LINK
Pls search this url content..
May 22, 2008 05:48 AM|LINK
I have checked the value of user property "userAccountControl"
and i got value is 66050. Now what this value means...i don't know from this value how can i found weather this user is disable or not...!!! can you give me
mode idae for compare value with this property value..
Thanks again for your reply.
May 22, 2008 01:35 PM|LINK
From my understanding of AD: the userAccountControl has the following values:
544= pwd not required
546=pwd not required and disabled
66048=do not expire pwd
66050=do not expire pwd and disabled
524800=trusted - active ?
I could not figure out the 524800 ??, it is active. Note that adding 2 to the active value makes it disabled one for that type.
May 23, 2008 05:31 AM|LINK
What does it mean by the value
"4096" and "4098"
Thanks and Regards,
May 23, 2008 12:22 PM|LINK
4096 is probably a work station account= active work station/server. The 4098 will be its corresponding disabled.
Aug 03, 2010 08:03 AM|LINK
I know this is an old post, but the following may help some people.
This article lists all the Property Flags of UserAccountControl along with their Values.
You should use a bitwise And to work out if one of these is being used.