How do i access Active Directory Start Access and End Access Datehttp://forums.asp.net/t/1679072.aspx/1?How+do+i+access+Active+Directory+Start+Access+and+End+Access+DateTue, 17 May 2011 22:33:07 -040016790724410502http://forums.asp.net/p/1679072/4410502.aspx/1?How+do+i+access+Active+Directory+Start+Access+and+End+Access+DateHow do i access Active Directory Start Access and End Access Date <p>How do i access Active Directory&nbsp; Start Access Date and End Access Date from C#.NET (what properties am i supposed to look for??)</p> <p>Thanks in advance for the help</p> <p>Praveen</p> 2011-05-07T10:14:42-04:004413198http://forums.asp.net/p/1679072/4413198.aspx/1?Re+How+do+i+access+Active+Directory+Start+Access+and+End+Access+DateRe: How do i access Active Directory Start Access and End Access Date <p>What is&nbsp;Start Access and End Access&nbsp;Date? I'm afraid AD has no such properties.&nbsp;</p> <p>There are following attributes that you can check: </p> <ul> <li>lastLogon - the last logon for the specific server you're querying. This date may be different for different servers (domain controllers), and for some it may be null/empty. This attribute is not replicated. </li><li>lastLogonTimestamp - the last logon for all servers. This attribute is replicated, which means that all servers have the same value. Only problem is that the default synchronization is 14 days on this attribute which may be too long. </li></ul> <p><a href="http://blogs.technet.com/b/heyscriptingguy/archive/2010/01/27/dandelions-vcr-clocks-and-last-logon-times-these-are-a-few-of-our-least-favorite-things.aspx">See example on VBS</a></p> <p>Another attriubute that can help is</p> <ul> <li>modifyTimestamp - which shows when object has been modified (e.g. password has been changed).&nbsp; </li></ul> <ul> </ul> 2011-05-10T07:38:07-04:004415306http://forums.asp.net/p/1679072/4415306.aspx/1?Re+How+do+i+access+Active+Directory+Start+Access+and+End+Access+DateRe: How do i access Active Directory Start Access and End Access Date <p><a target="_blank" title="DSmart Screenshot" href="https://picasaweb.google.com/115129150448955371637/May112011?authkey=Gv1sRgCJ_81OCW4NW_uwE#5607361185623033074">https://picasaweb.google.com/115129150448955371637/May112011?authkey=Gv1sRgCJ_81OCW4NW_uwE#5607361185623033074</a></p> <p>Here is the screenshot taken from my Directory Smart(I wanted to access the Start Access and End Access from the code behind).....</p> <p>For accessing the Access status there is a property called &quot;ont-accessstatus&quot;, similar to that i wanted to know the property name for accessing the Start Access and End Access from code behind</p> <p>&nbsp;</p> <p>&nbsp;</p> 2011-05-11T17:11:54-04:004418278http://forums.asp.net/p/1679072/4418278.aspx/1?Re+How+do+i+access+Active+Directory+Start+Access+and+End+Access+DateRe: How do i access Active Directory Start Access and End Access Date <p>The screen shot is not showing, but I can find no listing for those properties. I have some code that will loop through all the properties of a user, computer or group and display them and their values and I have not seen that come up in the list. It maybe part of another property similar to the useraccountcontrol but I can find nothing on it, sorry.</p> 2011-05-13T23:04:23-04:004419251http://forums.asp.net/p/1679072/4419251.aspx/1?Re+How+do+i+access+Active+Directory+Start+Access+and+End+Access+DateRe: How do i access Active Directory Start Access and End Access Date <p></p> <blockquote><span class="icon-blockquote"></span> <h4>PraveenAmar</h4> <p></p> <p>Here is the screenshot taken from my Directory Smart&nbsp;</p> <p></p> </blockquote> <p></p> <p>resulted to &quot;Oops... there's nothing to see here. Either you do not have access to these photos, or they don't exist at this web address.&quot;</p> 2011-05-15T18:40:47-04:004420460http://forums.asp.net/p/1679072/4420460.aspx/1?Re+How+do+i+access+Active+Directory+Start+Access+and+End+Access+DateRe: How do i access Active Directory Start Access and End Access Date <p>I forgot to attach the screenshot.....Here is the screenshot</p> <p><a target="_blank" title="DSmart Screenshot" href="https://picasaweb.google.com/115129150448955371637/May112011?authkey=Gv1sRgCJ_81OCW4NW_uwE#5607361185623033074">https://picasaweb.google.com/115129150448955371637/May112011?authkey=Gv1sRgCJ_81OCW4NW_uwE#5607361185623033074</a></p> <p>In the screenshot u can see Start Access and End Access values</p> <p>&nbsp;</p> <p>&nbsp;</p> 2011-05-16T17:11:48-04:004420777http://forums.asp.net/p/1679072/4420777.aspx/1?Re+How+do+i+access+Active+Directory+Start+Access+and+End+Access+DateRe: How do i access Active Directory Start Access and End Access Date <p>My guess is that is refering to the account creation date and the lastlogondate</p> 2011-05-16T21:50:56-04:004421880http://forums.asp.net/p/1679072/4421880.aspx/1?Re+How+do+i+access+Active+Directory+Start+Access+and+End+Access+DateRe: How do i access Active Directory Start Access and End Access Date <p>I don't think End Access is LastLogonDate because for some of the accounts i can see an End Access of 01/01/2020....</p> <p>&nbsp;</p> <p>Thanks,</p> <p>Praveen</p> <p>&nbsp;</p> <p>&nbsp;</p> 2011-05-17T15:23:40-04:004422328http://forums.asp.net/p/1679072/4422328.aspx/1?Re+How+do+i+access+Active+Directory+Start+Access+and+End+Access+DateRe: How do i access Active Directory Start Access and End Access Date <p>There is an <span class="codeStyle">AccountExpirationDate property you can set on an account as well</span></p> 2011-05-17T22:33:07-04:00