Best way to clean out old computer accounts in 2003 AD

dutrizacd

Member
Jul 23, 2003
39
0
0
While adding/removing computers from the network over the years, I've added and removed many computer accounts from our 2003 Active Directory. Can someone tell me how I'd be able to tell which of these computer accounts has been inactive, and for how long so I can do some spring cleaning safely?



 

RebateMonger

Elite Member
Dec 24, 2005
11,586
0
0
Disable them and see if anybody complains or if something stops working. REMOVING User accounts must be taken very seriously, since restoring or replicating a deleted account is a bummer.
 

dutrizacd

Member
Jul 23, 2003
39
0
0
Thanks for the tip, but I must be doing something wrong. I can do a dsquery on user accounts, even list computer account via description, but for some reason, it just doesn't like the dsquery computer domainroot -inactive command... *scratches forehead* I'll keep plugging away at it, maybe I'll get lucky.

Dan
 

Genx87

Lifer
Apr 8, 2002
41,091
513
126
I have to admit the inactive command for computers doesnt seem to be working. I probably have about 100 computer accounts that I am 99% sure arent being used that dont show up when I use the inactive query and put it out 4 weeks.