Remove old SCCM configuration from AD

Copper Contributor



I have in my AD some leftovers from a previous installation of SCCM. The server was simply shutdown by the previous admins, and I was wondering what are the proper ways to clean the leftovers of the installation.


I've seen from previous research these (see attached image) in the ADSI Edit System Container that they should be remove. Is there other places to look at?


Also, we are running Intune Hybrid Azure AD Joined, and we see a couple of computers that are seen as managed by "ConfigMgr". The thing is they don't have any client installed, but they still show up that way. 


Is it related to the AD entries mentioned above, or is there another reason (leftovers from previous SCCM agent installation) that could cause this behaviour in AzureAD.


Thank you in advance for your help.


1 Reply


Delete the old objects in the System Management container, don't delete the System Management container, just the objects, including sub-containers. Check DNS for management point records and delete them as well.

You can only have one MDM authority defined and if you had the SCCM client installed before you need to reset the MDM Authority on the computer.

Try this:

$CurrentPath = “HKLM:\SOFTWARE\Microsoft”
Remove-Item -Path $CurrentPath\DeviceManageabilityCSP -Force -Recurse -ErrorAction SilentlyContinue

And force a sync to Endpoint Manager.