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..
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..
From my understanding of AD: the userAccountControl has the following values:
512=active
514=disabled
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.
HTH
Marked as answer by parth_192 on May 23, 2008 12:56 PM
parth_192
Member
82 Points
55 Posts
How to get disable accounts of Active directory.
May 22, 2008 04:46 AM|LINK
Hi Guys.
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,
Parthiv,.
vigneshngl
Member
94 Points
16 Posts
Re: How to get disable accounts of Active directory.
May 22, 2008 04:50 AM|LINK
Hi,
Please see this link it will help you..
http://windowsitpro.com/article/articleid/77098/jsi-tip-5794-you-disabled-an-account-in-active-directory-but-the-user-can-still-logon.html
Thanks..
A.Vignesh.
parth_192
Member
82 Points
55 Posts
Re: How to get disable accounts of Active directory.
May 22, 2008 05:06 AM|LINK
Hi vigneshngl..
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..
Thanks,
Parthiv
vigneshngl
Member
94 Points
16 Posts
Re: How to get disable accounts of Active directory.
May 22, 2008 05:33 AM|LINK
Hi,
Pls search this url content..
http://www.c-sharpcorner.com/uploadfile/ecabral/adand.net08242005065451am/adand.net.aspx
A.Vignesh.
parth_192
Member
82 Points
55 Posts
Re: How to get disable accounts of Active directory.
May 22, 2008 05:48 AM|LINK
hi vigneshngl
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.
Parthiv.
raghu1
Contributor
2004 Points
558 Posts
Re: How to get disable accounts of Active directory.
May 22, 2008 01:35 PM|LINK
From my understanding of AD: the userAccountControl has the following values:
512=active
514=disabled
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.
HTH
parth_192
Member
82 Points
55 Posts
Re: How to get disable accounts of Active directory.
May 23, 2008 05:31 AM|LINK
hi,
What does it mean by the value
"4096" and "4098"
Thanks and Regards,
Parthiv.
raghu1
Contributor
2004 Points
558 Posts
Re: How to get disable accounts of Active directory.
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.
justin-clark...
Member
4 Points
5 Posts
Re: How to get disable accounts of Active directory.
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.
http://support.microsoft.com/kb/305144
You should use a bitwise And to work out if one of these is being used.