maxalarie
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try True Last Logon (msi, exe, zip)
That will show logins
That will show logins
ASKER
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
Enjoy and hope it helps you find everything you need
Here is a good script to use.
http://blogs.technet.com/heyscriptingguy/archive/2008/11/19/how-can-i-find-old-computer-accounts.aspx
http://blogs.technet.com/heyscriptingguy/archive/2008/11/19/how-can-i-find-old-computer-accounts.aspx
ASKER
How do i use this scripot? I save it as a .bat and execute it? (sorry Linux guy here)
You use this in PowerShell.
You can also search this site for vbscripts.
http://gallery.technet.microsoft.com/ScriptCenter/en-us/site/search?f%5B0%5D.Type=RootCategory&f%5B0%5D.Value=activedirectory&f%5B0%5D.Text=Active%20Directory&f%5B1%5D.Type=SubCategory&f%5B1%5D.Value=computeraccounts&f%5B1%5D.Text=Computer%20Accounts&f%5B2%5D.Type=ScriptLanguage&f%5B2%5D.Value=VBScript&f%5B2%5D.Text=VBScript&pageIndex=4
For an example.
http://gallery.technet.microsoft.com/ScriptCenter/en-us/43bf657f-6193-4ea4-be84-f56ab93d75ed
You can also search this site for vbscripts.
http://gallery.technet.microsoft.com/ScriptCenter/en-us/site/search?f%5B0%5D.Type=RootCategory&f%5B0%5D.Value=activedirectory&f%5B0%5D.Text=Active%20Directory&f%5B1%5D.Type=SubCategory&f%5B1%5D.Value=computeraccounts&f%5B1%5D.Text=Computer%20Accounts&f%5B2%5D.Type=ScriptLanguage&f%5B2%5D.Value=VBScript&f%5B2%5D.Text=VBScript&pageIndex=4
For an example.
http://gallery.technet.microsoft.com/ScriptCenter/en-us/43bf657f-6193-4ea4-be84-f56ab93d75ed
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\acct info.dll
regsvr32 /u %systemroot%\system32\acct info.dll
You can see the enhancements to AD by reviewing this page:
http://www.petri.co.il/view_additional_user_information_in_aduc.htm
regsvr32 %systemroot%\system32\acct
regsvr32 /u %systemroot%\system32\acct
You can see the enhancements to AD by reviewing this page:
http://www.petri.co.il/view_additional_user_information_in_aduc.htm
ASKER
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.