Find out AD computers that don't exist any longer?

Eaven HUANG 2,191 Reputation points
2022-09-05T01:46:37.893+00:00

Dear experts,

In our on-prem AD env, we have quite a number of computers that are no longer used, meaning the computer objects showing up in our AD UI, they don't exist anymore. The most common scenario is that, some very old computers were decommissioned for asset control purpose so they won't be booted any longer, or some of the computers were renamed but the old names are still showing up in AD.

Anyway we can filter out these computers and take further action? Maybe Powershell or LDAP query or something else?
Thanks a lot.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,926 Reputation points
    2022-09-06T07:32:45.02+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having query\issues related to

    You can use below simple PowerShell to find Inactive computers, change Timespace value as per your need .

    Search-ADAccount -ComputersOnly -AccountInactive -TimeSpan 90 | select name

    -------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    2 people found this answer helpful.

  2. Anonymous
    2022-09-05T02:18:35.137+00:00

    You can follow along here.
    https://social.technet.microsoft.com/wiki/contents/articles/52273.active-directory-how-to-find-inactive-computers-in.aspx

    --please don't forget to upvote and Accept as answer if the reply is helpful--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.