Jump to content

Recommended Posts

Posted

Hey People,

 

Started a new job at a college and looking at their AD now it’s a mess!! Stuff never been deleted like user and computer accounts etc.

Does anyone have any good tools that could do a ‘scavenge’ and look for accounts that haven’t been used for a long time (i.e. for leavers) or for computer accounts that are no longer in use.

 

Anything would help at the moment, otherwise it’s just a good old clean up job! Any tips or anything much appreciated!

 

Cheers people, :D

Rob

Posted

OldCmp is good, giving me a decent list of users and comps that need attention so to speak. Format needs working on but that nothing that I can’t sort out in Excel.

Thanks guys!

  • 3 weeks later...
Posted
We use Active Directory Janitor for this. A pretty simple tool. I just use it to run reports to find dead computer accts. It can also find user accts that havent logged in forever. Disable everything, delete later! Ive used oldcmp with good results as well.
  • 4 weeks later...
Posted

Last logon is not always accurate. If you have more than 1 DC then you're only seeing the logon time at the DC you query.

 

If you have a Windows 2003 domain (at 2003 FFL) then there is also Last-Logon-Timestamp which is more useful (because it's replicated between servers) and would be good for this (but is not always good for telling you when someone most recently logged on - it can be up to 14 days out of date)

Posted

To get last logon information we have placed a command in the login script to write to a text file with the following variables, %username$, %time% and %date%.

 

This is then outputted to two different files, one named with the computer name and the other named by the username. This is so we can track computer and user usage.

  • 4 months later...
Posted

I'm pretty sure I'm being daft, but what Fields to you use in your AD filter to show users who haven't logged on in more than 60 days?

 

I'd assume it'd be under User, but I can't find anything there that links to "Last Logon" or anything similar?

Posted

I believe that it's one of the many millions (well, ok, not millions) of hidden fields which exist for user/computer accounts.

 

you can see it using ADSI Edit, but I am unsure if you can search for acounts and do stuff like that in ADSI Edit (you can set values and view them though...)

 

From what I've read and noticed, this is largely something that is automated using VB scripts and the such...

Posted
To get last logon information we have placed a command in the login script to write to a text file with the following variables, %username$, %time% and %date%.

 

This is then outputted to two different files, one named with the computer name and the other named by the username. This is so we can track computer and user usage.

Any chance you can post up the login script you use please?

 

Thanks. :).

Posted
Last logon is not always accurate. If you have more than 1 DC then you're only seeing the logon time at the DC you query.

 

Yes, be careful with that as I've had users I know to be active thrown up in LDAP queries using last logon.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...