«

»

Mar 07

Finding Stale Accounts in Active Directory

I have been having a Twitter conversation with Martin Byford-Rew the IT Manager at Thomas Deacon Academy in Peterborough and others about finding stale accounts in active directory, now I do not have that concern as I use an AD tools which runs overnight and creates or archives accounts as pupils, staff and parents arrive at or leave Twynham, but more of that in a later post.

Before we used the current AD tools I also had the same problem with keeping Active Directory tidy and up to date the only way I found before reaching for scripting tools was to use the query tools available in Active Directory so I hope this post helps Martin.

  1. Open Active Directory users and computers at the top you will see “saved queries”
  2. Right click Saved Queries and choose new query
  3. Put a name in the name field I chose “Not Logged On For 30 Days”
  4. You can choose to query the whole of your directory or just one OU
  5. Click Define Query
  6. If you are only interested in finding accounts that have not logged on for a while you get the choice between 30,60,90,120 or 180 days since last logon

We only use these queries now to check out parental accounts for inactivity but a tool that is built in but rarely used. Below you can see the results of the query that we created.

About Dave Coleman

Dave Coleman has written 354 post on this blog.


Technorati Tags:

No related posts.

2 comments

3 pings

  1. Namescape – Active Directory Software Solutions

    Thanks for the useful tips. I found your post very informative and helpful.

  2. Ashley

    hey, nice blog…really like it and added to bookmarks. keep up with good work

  1. Sharepoint Active Directory

    [...] on active directory users … 8 ways to use sharepoint for social computing | endusersharepoint.com Finding stale accounts in active directory Creating applications using sharepoint Getting active directory ready for sharepoint 2010 A quick [...]

  2. Sharepoint Active Directory

    [...] Fatayat Twitter Related weblogs Configuring incoming email in sharepoint 2010 | sharepoint george Chris and daves sharepoint and tech blog » finding stale accounts … Microsoft groove server 2010 | free software download & reviews … Announcing the availability [...]

  3. ItsOnTv

    Thanks, found the article on google, nice post fella…

    I saw recently so sending a trackback to my site, thx again Si…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>