Home All Groups Group Topic Archive Search About


Author
13 Mar 2007 9:26 PM
Lamborghini
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.

Author
14 Mar 2007 1:44 AM
joseomjr@gmail.com
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
Author
15 Mar 2007 1:16 PM
Lamborghini
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
>
>
Author
14 Mar 2007 6:59 AM
Richard Mueller [MVP]
Show quote
"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
--
Author
15 Mar 2007 1:13 PM
Lamborghini
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
> --
>
>
>

AddThis Social Bookmark Button