How to query old computers in Windows Server 2003 domain

I was trying to get a simple way to check old computers in my domain, like mostly we query objects in "Active Directory Users & Computers" but there was no such good option to check this. As I was required to check all computer, not one by one. I get a solution via command prompt;

Solution:

  1. Start > RUN > CMD > Press Enter
  2. Type "dsquery computer -inactive 4"
as this query means that show inactive computers since last 4 weeks.
Note: DSQUERY required Windows Server 2003 Support Tools package to be installed on your Windows Server 2003 and this can be done by instillation of Adminpak.msi from Installation Media or in %systemroot%\System32\, location.

Comments