Last post Aug 03, 2010 04:03 AM by justin-clarke
May 22, 2008 12:46 AM|parth_192|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 12:50 AM|vigneshngl|LINK
Please see this link it will help you..
May 22, 2008 01:06 AM|parth_192|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 01:33 AM|vigneshngl|LINK
Pls search this url content..
May 22, 2008 01:48 AM|parth_192|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 09:35 AM|raghu1|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 01:31 AM|parth_192|LINK
What does it mean by the value
"4096" and "4098"
Thanks and Regards,
May 23, 2008 08:22 AM|raghu1|LINK
4096 is probably a work station account= active work station/server. The 4098 will be its corresponding disabled.
Aug 03, 2010 04:03 AM|justin-clarke|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.