Link to home
Start Free TrialLog in
Avatar of CNBELGIN
CNBELGIN

asked on

Active Directory 2003

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.
Avatar of Rob G
Rob G
Flag of United States of America image

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..
ASKER CERTIFIED SOLUTION
Avatar of Joseph Daly
Joseph Daly
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial