Solved

Active Directory 2003

Posted on 2014-11-11
3
100 Views
Last Modified: 2014-11-27
Hello Experts,

I need to complete some house cleaning in active directory, which involves deleting stale computer accounts. We’re running Windows 2003 DC’s

I need to identify computer/server accounts that have not been active in AD for two months. I will then need to disable these accounts for a period of time and then delete them.
0
Comment
Question by:CNBELGIN
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Expert Comment

by:Rob G
ID: 40435506
You will likely need the installation CD for 2k3 server,... But you can use the DSQuery tools from the adminpak.msi on the original installation CD.

The commands are:

To find inactive computer accounts (number is inactivity in weeks):
dsquery computer -inactive 2

To find computers with stale passwords (number is stale in days)
dsquery computer -stalepwd 45

You can get additional info on both of these tools with dsquery computer /? ,dsmod computer /?, and dsrm computer /?

Hope this helps..
0
 
LVL 35

Accepted Solution

by:
Joseph Daly earned 500 total points
ID: 40435668
I prefer to use oldcmp for this to remove the stale accounts. This allows you to use the LLTS and realage parameters to limit false positives.
http://www.joeware.net/freetools/tools/oldcmp/

Check out my article on good AD tools here.
http://www.experts-exchange.com/Software/Server_Software/Active_Directory/A_4221-Active-Directory-Administrator's-Tool-Kit.html
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
A hard and fast method for reducing Active Directory Administrators members.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question