Link to home
Start Free TrialLog in
Avatar of maxalarie
maxalarieFlag for Canada

asked on

How to find old computers in active Directory

How can i find old computers in AD on SBS 2003?  I  know i have old computers in there, but not sure when they logged for the last time.. I'd like to know which one I can erase from my domain.

Thanks.

Edit: I already tried dsquery computers -inactive 52  but got this error message:
 C:\Documents and Settings\Administrator> dsquery computer -inactive 10
dsquery failed:The parameter is incorrect.:Windows could not run this query beca
use you are connected to a domain that does not support this query.
type dsquery /? for help.
ASKER CERTIFIED SOLUTION
Avatar of ry_berk
ry_berk
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
Avatar of maxalarie

ASKER

@ry_berk

Thanks for the link.  I just need  the tool for computers.. On the webpage you've provided:http://www.dovestones.com/products/True_Last_Logon.asp

Which tool can help me find  old computers?
I see
AD Bulk Users (msi, exe, zip)             
AD Bulk Contacts (msi, exe, zip)             
AD Bulk Export (msi, exe, zip)             
AD Find and Replace (msi, exe, zip)             
True Last Logon (msi, exe, zip)             
Home Folder Creator                   
AD Photos

But im not sure which one to pick in order to find old computers.

thanks.
Try True Last Logon (msi, exe, zip)  

That will show logins
I have foudn it.  Last Logon 2.9 (there is an option in the screenshot for either users or computers)
Great.

Enjoy and hope it helps you find everything you need
Avatar of Darius Ghassem
How do i use this scripot?  I save it as a .bat and execute it?  (sorry Linux guy here)
There is a hidden application that will add extra data to your Active directory profiles. This includes last login data. All you have to do is register a DLL.

regsvr32 %systemroot%\system32\acctinfo.dll

regsvr32 /u %systemroot%\system32\acctinfo.dll

You can see the enhancements to AD by reviewing this page:
http://www.petri.co.il/view_additional_user_information_in_aduc.htm