How to get disable accounts of Active directory.http://forums.asp.net/t/1264701.aspx/1?How+to+get+disable+accounts+of+Active+directory+Tue, 03 Aug 2010 08:03:21 -040012647012372870http://forums.asp.net/p/1264701/2372870.aspx/1?How+to+get+disable+accounts+of+Active+directory+How to get disable accounts of Active directory. <p>Hi Guys.</p> <p>I want disable accounts from active directiory..which property will give me the detail that weather this account is disable or not ??</p> <p>&nbsp;</p> <p>Thanks in advanced,</p> <p>Parthiv,.&nbsp;</p> 2008-05-22T04:46:45-04:002372877http://forums.asp.net/p/1264701/2372877.aspx/1?Re+How+to+get+disable+accounts+of+Active+directory+Re: How to get disable accounts of Active directory. <p>&nbsp;Hi,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Please see this link it will help you..</p> <p>http://windowsitpro.com/article/articleid/77098/jsi-tip-5794-you-disabled-an-account-in-active-directory-but-the-user-can-still-logon.html</p> <p>Thanks..&nbsp;</p> <p>&nbsp;&nbsp;</p> 2008-05-22T04:50:51-04:002372902http://forums.asp.net/p/1264701/2372902.aspx/1?Re+How+to+get+disable+accounts+of+Active+directory+Re: How to get disable accounts of Active directory. <p>Hi vigneshngl..</p> <p>&nbsp;</p> <p>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..</p> <p>&nbsp;</p> <p>Thanks,</p> <p>Parthiv&nbsp;</p> 2008-05-22T05:06:58-04:002372955http://forums.asp.net/p/1264701/2372955.aspx/1?Re+How+to+get+disable+accounts+of+Active+directory+Re: How to get disable accounts of Active directory. <p>Hi,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp; Pls search this url content..</p> <p>&nbsp;</p> <p>http://www.c-sharpcorner.com/uploadfile/ecabral/adand.net08242005065451am/adand.net.aspx</p> <p>&nbsp;</p> <p><br> &nbsp; </p> 2008-05-22T05:33:30-04:002372978http://forums.asp.net/p/1264701/2372978.aspx/1?Re+How+to+get+disable+accounts+of+Active+directory+Re: How to get disable accounts of Active directory. <p><b>&nbsp;hi <strong>vigneshngl</strong></b></p> <p>&nbsp;I have checked the value of&nbsp; user property &quot;<font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">userAccountControl&quot; and i got value is&nbsp; </font></font></font></font></font></font></font></font></font></font></font></font></font></font>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..</p> <p>&nbsp;</p> <p>Thanks again for your reply.</p> <p>Parthiv.&nbsp;</p> <p>&nbsp;</p> 2008-05-22T05:48:55-04:002374067http://forums.asp.net/p/1264701/2374067.aspx/1?Re+How+to+get+disable+accounts+of+Active+directory+Re: How to get disable accounts of Active directory. <p>&nbsp;From my understanding of AD: the userAccountControl has the following values:</p> <p>&nbsp;512=active&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br> &nbsp;514=disabled<br> &nbsp;544= pwd not required&nbsp;&nbsp;&nbsp; <br> &nbsp;546=pwd not required and disabled<br> 66048=do not expire pwd&nbsp;&nbsp;&nbsp; <br> 66050=do not expire pwd and disabled<br> 524800=trusted - active ?</p> <p>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.&nbsp;</p> <p><br> &nbsp;HTH</p> 2008-05-22T13:35:07-04:002375747http://forums.asp.net/p/1264701/2375747.aspx/1?Re+How+to+get+disable+accounts+of+Active+directory+Re: How to get disable accounts of Active directory. <p>hi,</p> <p>What does it mean by the value </p> <p>&quot;4096&quot; and &quot;4098&quot;</p> <p>&nbsp;</p> <p>Thanks and Regards,</p> <p>Parthiv.&nbsp;</p> 2008-05-23T05:31:30-04:002376577http://forums.asp.net/p/1264701/2376577.aspx/1?Re+How+to+get+disable+accounts+of+Active+directory+Re: How to get disable accounts of Active directory. <p>&nbsp;4096 is probably a work station account= active work station/server. The 4098 will be its corresponding disabled.<br> </p> 2008-05-23T12:22:25-04:004006374http://forums.asp.net/p/1264701/4006374.aspx/1?Re+How+to+get+disable+accounts+of+Active+directory+Re: How to get disable accounts of Active directory. <p>I know this is an old post, but the following may help some people.</p> <p>This article lists all the Property Flags of UserAccountControl along with their Values.<br> </p> <p>http://support.microsoft.com/kb/305144</p> <p>You should use a bitwise And to work out if one of these is being used.<br> </p> 2010-08-03T08:03:21-04:00