Active Directory and old machine cleanup

LongLastingFlavor 221 Reputation points
2021-05-19T21:11:21.143+00:00

Hello,

In our Active Directory environment (Server 2012 R2) we have many machines (Windows 7\Windows 8\Windows 10) that no longer exists. Because if this we have no way to properly disjoin them from the domain. Is there a "clean up" process for removing these machines from AD other than just manually deleting them?

Thank you,

Steve

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

Accepted answer
  1. Anonymous
    2021-05-19T23:04:33.643+00:00

    Yes, deleting the computer accounts is a proper clean up plan for active directory.

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

    1 person found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-05-19T22:38:00.35+00:00

    Some options here via PowerShell.
    https://gist.github.com/9to5IT/ce47adee89e9611050d89e2ae210eb74

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

    0 comments No comments

  2. LongLastingFlavor 221 Reputation points
    2021-05-19T23:02:19.687+00:00

    Thank you for the response DSPatrick. I guess i could have been a little bit clearer in my initial post.

    Is manually deleting old computer accounts the only proper or clean way to remove them when they no longer exist and are unable to properly disjoin them from the domain? I just want to make sure that there isn't any residual "stuff" left in AD when manually deleting versus disjoining.

    0 comments No comments

  3. LongLastingFlavor 221 Reputation points
    2021-05-19T23:17:30.843+00:00

    Sounds good, thank you!


  4. Vicky Wang 2,736 Reputation points
    2021-05-20T06:18:56.163+00:00

    Hi,

    I am glad to hear that your issue was successfully resolved\I am pleased to know that the information is helpful to you. If there is anything else we can do for you, please feel free to post in the forum.

    Best Regards,

    Vicky

    0 comments No comments

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.