What is Start Access and End Access Date? I'm afraid AD has no such properties.
There are following attributes that you can check:
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.
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.
Here is the screenshot taken from my Directory Smart(I wanted to access the Start Access and End Access from the code behind).....
For accessing the Access status there is a property called "ont-accessstatus", similar to that i wanted to know the property name for accessing the Start Access and End Access from code behind
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.
PraveenAmar
Member
71 Points
89 Posts
How do i access Active Directory Start Access and End Access Date
May 07, 2011 10:14 AM|LINK
How do i access Active Directory Start Access Date and End Access Date from C#.NET (what properties am i supposed to look for??)
Thanks in advance for the help
Praveen
smirnov
All-Star
24624 Points
4192 Posts
Re: How do i access Active Directory Start Access and End Access Date
May 10, 2011 07:38 AM|LINK
What is Start Access and End Access Date? I'm afraid AD has no such properties.
There are following attributes that you can check:
See example on VBS
Another attriubute that can help is
PraveenAmar
Member
71 Points
89 Posts
Re: How do i access Active Directory Start Access and End Access Date
May 11, 2011 05:11 PM|LINK
https://picasaweb.google.com/115129150448955371637/May112011?authkey=Gv1sRgCJ_81OCW4NW_uwE#5607361185623033074
Here is the screenshot taken from my Directory Smart(I wanted to access the Start Access and End Access from the code behind).....
For accessing the Access status there is a property called "ont-accessstatus", similar to that i wanted to know the property name for accessing the Start Access and End Access from code behind
gww
Contributor
2143 Points
458 Posts
Re: How do i access Active Directory Start Access and End Access Date
May 13, 2011 11:04 PM|LINK
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.
smirnov
All-Star
24624 Points
4192 Posts
Re: How do i access Active Directory Start Access and End Access Date
May 15, 2011 06:40 PM|LINK
resulted to "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."
PraveenAmar
Member
71 Points
89 Posts
Re: How do i access Active Directory Start Access and End Access Date
May 16, 2011 05:11 PM|LINK
I forgot to attach the screenshot.....Here is the screenshot
https://picasaweb.google.com/115129150448955371637/May112011?authkey=Gv1sRgCJ_81OCW4NW_uwE#5607361185623033074
In the screenshot u can see Start Access and End Access values
gww
Contributor
2143 Points
458 Posts
Re: How do i access Active Directory Start Access and End Access Date
May 16, 2011 09:50 PM|LINK
My guess is that is refering to the account creation date and the lastlogondate
PraveenAmar
Member
71 Points
89 Posts
Re: How do i access Active Directory Start Access and End Access Date
May 17, 2011 03:23 PM|LINK
I don't think End Access is LastLogonDate because for some of the accounts i can see an End Access of 01/01/2020....
Thanks,
Praveen
gww
Contributor
2143 Points
458 Posts
Re: How do i access Active Directory Start Access and End Access Date
May 17, 2011 10:33 PM|LINK
There is an AccountExpirationDate property you can set on an account as well