|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Hi All,
I am in the quest of getting information of stale objects and accounts in AD. Since the LastLogon attribute of the User object does not get replicated and I am having problems with the lastLoginTimestamp attribute, I am having to "connect" to each domain controller to ask about the lastLogon attribute for a user. How do I "connect" to a domain controller? How do I enumerated the domain controllers in our AD? Thank you very much. E. to connect to domain controller: http://msdn2.microsoft.com/en-us/library/aa746384.aspx
to enumerate the domain controller you can look at the corresponding OU Thank you very much. You are of great help.
E. Show quote "joseo***@gmail.com" wrote: > to connect to domain controller: http://msdn2.microsoft.com/en-us/library/aa746384.aspx > to enumerate the domain controller you can look at the corresponding OU > >
Show quote
"Lamborghini" <Lamborgh***@discussions.microsoft.com> wrote in message I have a sample VBScript program that retrieve lastLogon for all users news:ED4D159E-80DF-4C78-9557-28C84BF2DE7A@microsoft.com... > Hi All, > I am in the quest of getting information of stale objects and accounts in > AD. Since the LastLogon attribute of the User object does not get > replicated > and I am having problems with the lastLoginTimestamp attribute, I am > having > to "connect" to each domain controller to ask about the lastLogon > attribute > for a user. > How do I "connect" to a domain controller? > How do I enumerated the domain controllers in our AD? > > Thank you very much. > E. linked here: http://www.rlmueller.net/Last%20Logon.htm You can also use Joe Richards' OldCmp tool to find old user accounts. http://www.joeware.net/win/free/tools/oldcmp.htm Thank you very much. You guys rock!!!!
I just started to script for the AD after many years of building software applications. I am very impressed by your knowledge. Thank you again. E. Show quote "Richard Mueller [MVP]" wrote: > > "Lamborghini" <Lamborgh***@discussions.microsoft.com> wrote in message > news:ED4D159E-80DF-4C78-9557-28C84BF2DE7A@microsoft.com... > > Hi All, > > I am in the quest of getting information of stale objects and accounts in > > AD. Since the LastLogon attribute of the User object does not get > > replicated > > and I am having problems with the lastLoginTimestamp attribute, I am > > having > > to "connect" to each domain controller to ask about the lastLogon > > attribute > > for a user. > > How do I "connect" to a domain controller? > > How do I enumerated the domain controllers in our AD? > > > > Thank you very much. > > E. > > I have a sample VBScript program that retrieve lastLogon for all users > linked here: > > http://www.rlmueller.net/Last%20Logon.htm > > You can also use Joe Richards' OldCmp tool to find old user accounts. > > http://www.joeware.net/win/free/tools/oldcmp.htm > > > -- > Richard Mueller > Microsoft MVP Scripting and ADSI > Hilltop Lab - http://www.rlmueller.net > -- > > > |
|||||||||||||||||||||||