Windows Thread, AD Clean Up Tips in Technical; Hey People,
Started a new job at a college and looking at their AD now it’s a mess!! Stuff never ...
-
3rd July 2007, 09:55 AM #1 AD Clean Up Tips
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,
Rob
-
-
IDG Tech News
-
3rd July 2007, 10:01 AM #2
-
-
3rd July 2007, 10:39 AM #3 Re: AD Clean Up Tips
Thank you, that looks good. Ill give that a try!
-
-
4th July 2007, 08:09 AM #4 Re: AD Clean Up Tips
OldCmp is great for deleting old computer accounts
http://www.joeware.net/freetools/tools/oldcmp/index.htm
It will only let you disable computers first as a safety mechanism
For accounts I just use an AD query to filter user accounts not logged on in xx amount of days. Then I disable them for a while and if I hear no moans they get deleted
-
-
4th July 2007, 02:07 PM #5 Re: AD Clean Up Tips
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!
-
-
23rd July 2007, 03:27 PM #6
- Rep Power
- 0
Re: AD Clean Up Tips
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.
-
-
23rd July 2007, 03:30 PM #7
- Rep Power
- 14
Re: AD Clean Up Tips
I've used this for testing and so forth. May find it useful?
http://manageengine.adventnet.com/pr...ger/index.html
-
-
18th August 2007, 02:10 PM #8 Re: AD Clean Up Tips
Alternatively just run an Active Directory query against user or computer accounts based on last logon
-
-
19th August 2007, 09:27 PM #9 Re: AD Clean Up Tips
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)
-
-
20th August 2007, 07:16 AM #10
- Rep Power
- 14
Re: AD Clean Up Tips
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.
-
-
6th January 2008, 12:23 PM #11 Re: AD Clean Up Tips
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?
-
-
6th January 2008, 08:16 PM #12
- Rep Power
- 11
Re: AD Clean Up Tips
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...
-
-
7th January 2008, 11:45 AM #13
- Rep Power
- 11

Originally Posted by
plock
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.
.
-
-
11th January 2008, 04:01 PM #14 Could anyone upload the oldcmp.exe file please as the whole joeware site seems to be down
-
-
12th January 2008, 12:11 AM #15 
Originally Posted by
srochford
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.
-
SHARE:
Similar Threads
-
By Uraken in forum General Chat
Replies: 9
Last Post: 23rd February 2007, 09:03 AM
-
By Kyle in forum MIS Systems
Replies: 3
Last Post: 9th September 2006, 08:13 PM
-
By ken_kaniff in forum How do you do....it?
Replies: 12
Last Post: 25th May 2006, 06:20 PM
-
By arctan in forum Scripts
Replies: 5
Last Post: 5th March 2006, 02:22 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules