How to clean up SCCM dependencies?

Micheal Mallo 355 Reputation points
2023-09-14T05:49:50.0433333+00:00

Dear Team,

I am setting Intune for a client, and I am facing an issue; I began the enrollment with a pilot group of devices, however the "managed by" status of the devices is shown as "Co-Managed", and the "compliance status" is shown as "SeeConfigMgr".

I made further investigation, to explore the client's environment furthermore; It has an Active Directory deployed on premises. The environment had previously an SCCM server, which was hosted on a virtual machine. The SCCM virtual machine was removed entirely, without the proper uninstallation of the SCCM role.

I found some articles about how to remove SCCM dependencies, both from Active Directory, and from the domain joined devices.

Here's a script I found on Github.

https://github.com/robertomoir/remove-sccm/blob/master/remove-sccmagent.ps1

The script has worked from some devices, and their status is shown now as "managed by Intune" in Intune portal. However, other devices still have the "Co-Managed" status.

I would like to know what is the recommended way to clear all SCCM dependencies, so they will not be in conflict with Intune?

Best regards,

Microsoft Security | Intune | Configuration Manager | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Simon Ren-MSFT 40,346 Reputation points Microsoft External Staff
    2023-09-25T08:01:57.3466667+00:00

    Hi,

    Thank you for posting in Microsoft Q&A forum.

    1,You can try to uninstall the SCCM client agent and delete the following registry keys:

    \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DeviceManageabilityCSP

    \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\CCMSetup

    It will take some time to take effect, wait for a while.

    2,You can also remove the computer objects from Intune, then re-enroll/resync to have a try.

    Thanks for your time. Have a nice day!

    Best regards,

    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    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.