Forum Discussion
Remove sccm Client - after change to Intune
We started to migrate devices to Intune insted of the old SCCM server.
Devices are Hybrid Azure AD joined using a GPO and thats working just fine. The issue is that, the SCCM client is still present on the machines, and they are stated as Co-managed. On a device when running ccmsetup /uninstall, after a reboot everything is working just fine. But when trying to deploy that script from Intune, nothing happens.
Tried to apply the script with a GPO dosent work either..... Am I missing anything?
- timhermieCopper Contributor
You can use ccmclean this cleans up very well
https://www.anoopcnair.com/configmgr-sccm-2012-uninstallremove-cm-2012-client-using-ccmclean-exe/
not officially supported by MS, but works like a charm.
if you wanna remove it on prem, and not with Intune look into PDQ Deploy free version.
Regards
T.
- JanBakkerOrphanedSteel Contributor
Michael Sigvardt Jensen use this script: https://www.optimizationcore.com/deployment/sccm-client-complete-remove-uninstall-powershell-script/
Use this blog to understand how scripts work and where can you can access the logs.https://oliverkieselbach.com/2017/11/29/deep-dive-microsoft-intune-management-extension-powershell-scripts/
You could also create a small cmd script calling ccmsetup /uninstall and wrap it up in a Win32 app. https://eskonr.com/2019/10/how-to-uninstall-sccm-client-using-intune-win32-app-management/
- Michael Sigvardt JensenCopper ContributorI have tried to pack the ccmsetup /uninstall in Win32 app - but I guess the devices doesn't get the app from Intune, as long as they are co-mnanaged.
Also tried to set ccmsetup /uninstall as a logoff script, but no luck either.- timhermieCopper Contributor
Look into what I replied earlier
https://www.pdq.com/pdq-deploy/ > free version > does not need an agent on the clients
You can push your uninstaller with that tool. Delete it after you are done.
Also look into ccmclean, this tool cleans everything, ccmsetup /uninstall doesnt.
Regards