Remove Old Objects From AD and Configuration Manager

By Garth Jones

System Center Configuration Manager is a huge product and the easiest way to get all clients into ConfigMgr is to enable AD System Discovery (ADSD) which will discover all devices within the domain. However, doing this can expose issues that already exist within Active Directory (AD).

When ADSD is enabled, ConfigMgr Administrators generally discover the entire domain or a major OU structure. Admins are amazed to see the sheer number of PCs discovered by ADSD, however, upon further inspection they notice that these “extra” PCs are in fact old PCs that are no longer active on the network.

At one client that I was working with they expected to see about 5,000 PCs, but instead when ADSD was completed they found over 25,000 PCs.

Why is there a difference in the number of PCs? The problem arises when organizations don’t have a good PC decommissioning process in place. They might have a process to physically dispose of a PC, but they forget to remove the PC from AD and sometimes ConfigMgr too. This is an important part of the decommissioning process. Without removing decommissioned PCs from AD, it leaves AD in a “dirty” state with lots of stale PCs that are no longer active.

Once people discover this problem they want to fix it, but there isn’t a built-in mechanism within ConfigMgr to clean stale PCs from AD.

To help in this regard, the Windows Management Experts team has written a script to clean-up AD and ConfigMgr of stale PC records. You can download the script from their site using the link below.

http://www.windowsmanagementexperts.com/free-scripts/remove-old-objects-from-ad-and-sccm

email

Written by , Posted .