Solved

Active Directory 2003

Posted on 2014-11-11
3
97 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

832 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