Remove sccm Client - after change to Intune

%3CLINGO-SUB%20id%3D%22lingo-sub-1339657%22%20slang%3D%22en-US%22%3ERemove%20sccm%20Client%20-%20after%20change%20to%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1339657%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20started%20to%20migrate%20devices%20to%20Intune%20insted%20of%20the%20old%20SCCM%20server.%26nbsp%3B%3C%2FP%3E%3CP%3EDevices%20are%20Hybrid%20Azure%20AD%20joined%20using%20a%20GPO%20and%20thats%20working%20just%20fine.%20The%20issue%20is%20that%2C%20the%20SCCM%20client%20is%20still%20present%20on%20the%20machines%2C%20and%20they%20are%20stated%20as%20Co-managed.%20On%20a%20device%20when%20running%20ccmsetup%20%2Funinstall%2C%20after%20a%20reboot%20everything%20is%20working%20just%20fine.%20But%20when%20trying%20to%20deploy%20that%20script%20from%20Intune%2C%20nothing%20happens.%3C%2FP%3E%3CP%3ETried%20to%20apply%20the%20script%20with%20a%20GPO%20dosent%20work%20either.....%20Am%20I%20missing%20anything%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1339657%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESCCM%20Client%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1354831%22%20slang%3D%22en-US%22%3ERe%3A%20Remove%20sccm%20Client%20-%20after%20change%20to%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1354831%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235106%22%20target%3D%22_blank%22%3E%40Michael%20Sigvardt%20Jensen%3C%2FA%3E%26nbsp%3Buse%20this%20script%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.optimizationcore.com%2Fdeployment%2Fsccm-client-complete-remove-uninstall-powershell-script%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.optimizationcore.com%2Fdeployment%2Fsccm-client-complete-remove-uninstall-powershell-script%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUse%20this%20blog%20to%20understand%20how%20scripts%20work%20and%20where%20can%20you%20can%20access%20the%20logs.%3CA%20href%3D%22https%3A%2F%2Foliverkieselbach.com%2F2017%2F11%2F29%2Fdeep-dive-microsoft-intune-management-extension-powershell-scripts%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foliverkieselbach.com%2F2017%2F11%2F29%2Fdeep-dive-microsoft-intune-management-extension-powershell-scripts%2F%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20could%20also%20create%20a%20small%20cmd%20script%20calling%26nbsp%3B%3CSPAN%3Eccmsetup%20%2Funinstall%20and%20wrap%20it%20up%20in%20a%20Win32%20app.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Feskonr.com%2F2019%2F10%2Fhow-to-uninstall-sccm-client-using-intune-win32-app-management%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Feskonr.com%2F2019%2F10%2Fhow-to-uninstall-sccm-client-using-intune-win32-app-management%2F%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1355988%22%20slang%3D%22en-US%22%3ERe%3A%20Remove%20sccm%20Client%20-%20after%20change%20to%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1355988%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235106%22%20target%3D%22_blank%22%3E%40Michael%20Sigvardt%20Jensen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20use%20ccmclean%20this%20cleans%20up%20very%20well%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.anoopcnair.com%2Fconfigmgr-sccm-2012-uninstallremove-cm-2012-client-using-ccmclean-exe%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.anoopcnair.com%2Fconfigmgr-sccm-2012-uninstallremove-cm-2012-client-using-ccmclean-exe%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Enot%20officially%20supported%20by%20MS%2C%20but%20works%20like%20a%20charm.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eif%20you%20wanna%20remove%20it%20on%20prem%2C%20and%20not%20with%20Intune%20look%20into%20PDQ%20Deploy%20free%20version.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ET.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1357128%22%20slang%3D%22en-US%22%3ERe%3A%20Remove%20sccm%20Client%20-%20after%20change%20to%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1357128%22%20slang%3D%22en-US%22%3EI%20have%20tried%20to%20pack%20the%20ccmsetup%20%2Funinstall%20in%20Win32%20app%20-%20but%20I%20guess%20the%20devices%20doesn't%20get%20the%20app%20from%20Intune%2C%20as%20long%20as%20they%20are%20co-mnanaged.%3CBR%20%2F%3EAlso%20tried%20to%20set%20ccmsetup%20%2Funinstall%20as%20a%20logoff%20script%2C%20but%20no%20luck%20either.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1357139%22%20slang%3D%22en-US%22%3ERe%3A%20Remove%20sccm%20Client%20-%20after%20change%20to%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1357139%22%20slang%3D%22en-US%22%3E%3CP%3ELook%20into%20what%20I%20replied%20earlier%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.pdq.com%2Fpdq-deploy%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.pdq.com%2Fpdq-deploy%2F%3C%2FA%3E%26nbsp%3B%26gt%3B%20free%20version%20%26gt%3B%20does%20not%20need%20an%20agent%20on%20the%20clients%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20push%20your%20uninstaller%20with%20that%20tool.%20Delete%20it%20after%20you%20are%20done.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20look%20into%20ccmclean%2C%20this%20tool%20cleans%20everything%2C%20ccmsetup%20%2Funinstall%20doesnt.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235106%22%20target%3D%22_blank%22%3E%40Michael%20Sigvardt%20Jensen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1357204%22%20slang%3D%22en-US%22%3ERe%3A%20Remove%20sccm%20Client%20-%20after%20change%20to%20Intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1357204%22%20slang%3D%22en-US%22%3EPDQ-Deploy....%20Thats%20nice%3A)%3CBR%20%2F%3EDeploying%20as%20we%20speak%20%3A)%3C%2Fimg%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

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?

5 Replies
Highlighted
Highlighted

@Michael Sigvardt Jensen 

 

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.

Highlighted
I 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.
Highlighted

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

 

@Michael Sigvardt Jensen 

Highlighted
PDQ-Deploy.... Thats nice:)
Deploying as we speak :)