Obsolete Active Directory Objects

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is the best (and easiest) was to identify and delete obsolete objects
from Active Directory (in particular, Computer Accounts). The Active
Directory in question is a SINGLE forest, SINGLE Domain setup. Thank you in
advance.
 
What is the best (and easiest) was to identify and delete obsolete objects
from Active Directory (in particular, Computer Accounts). The Active
Directory in question is a SINGLE forest, SINGLE Domain setup. Thank you in
advance.


Perform the following from a Windows XP member workstation, while logged on as a domain administrator, or from a Windows Server 2003 domain member or DC.

dsquery computer -inactive 13 -limit 0

where 13 is the number of weeks that the computer account has been inactive.

to delete these accounts:

dsquery computer -inactive 13 -limit 0|dsrm -noprompt

See tip 6820 in the 'Tips & Tricks' at http://www.jsiinc.com
See tip 7714
See tip 7992


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top