← Back to articles Intune

Decommissioning SCCM Co-Management: Transitioning to 100% Cloud-Native Intune & Cleaning CCMExec Residue

Transitioning from hybrid Microsoft Endpoint Configuration Manager (SCCM) co-management to 100% cloud-native Microsoft Intune is the ultimate milestone in Modern Workplace maturity. However, simply shifting sliders in the Co-management dashboard does not cleanly remove the on-premises SCCM agent footprint.

Automated CCMExec Uninstallation & Registry Cleanup Script

# ==============================================================================
# Complete SCCM Agent (CCMExec) Removal & Cleanup Script
# ==============================================================================
Write-Host ">>> [1/3] Triggering CCMSetup.exe /uninstall..." -ForegroundColor Cyan
$ccmSetup = "$env:SystemRoot\ccmsetup\ccmsetup.exe"
if (Test-Path $ccmSetup) {
    Start-Process -FilePath $ccmSetup -ArgumentList "/uninstall" -Wait
}

Write-Host ">>> [2/3] Terminating residual CCM services..." -ForegroundColor Cyan
Get-Service -Name "ccmexec" -ErrorAction SilentlyContinue | Stop-Service -Force -ErrorAction SilentlyContinue

Write-Host ">>> [3/3] Purging legacy SMS certificates and registry keys..." -ForegroundColor Cyan
Remove-Item -Path 'HKLM:\SOFTWARE\Microsoft\CCM' -Force -Recurse -ErrorAction SilentlyContinue
Remove-Item -Path 'HKLM:\Software\Microsoft\SystemCertificates\SMS\Certificates\*' -Recurse -Force -ErrorAction SilentlyContinue

Write-Host "✅ Endpoint is now 100% cloud-native Intune managed." -ForegroundColor Green

Was this article helpful?

🎯
MSEndpoint Academy

Assess Your Microsoft 365 & Intune Skills (MD-102)

100% Free • 5 Min

Applying this guide in production? Test your technical readiness against real exam scenarios from Microsoft 365 Certified: Endpoint Administrator (MD-102). Identify your strengths and knowledge gaps instantly.

💡 Express Knowledge Check Question 1 of 10

Which official utility is required to convert a Win32 application installer (.exe) into the package format (.intunewin) for deployment via Microsoft Intune?

🔒 100% Free 📊 Instant Scorecard 🤖 AI Explanations
Take Full Diagnostic Exam (10 Questions)

🎓 Ready to go deeper?

Practice real MD-102 exam questions, get AI feedback on your weak areas, and fast-track your Intune certification.

Start Free Practice → Book a Session
Souhaiel Morhag
Souhaiel Morhag
Microsoft Endpoint & Modern Workplace Engineer

Souhaiel Morhag is a Microsoft Intune and endpoint management specialist with hands-on experience deploying and securing enterprise environments across Microsoft 365. He founded MSEndpoint.com to share practical, real-world guides for IT admins navigating Microsoft technologies — and built the MSEndpoint Academy at app.msendpoint.com/academy, a dedicated learning platform for professionals preparing for the MD-102 (Microsoft 365 Endpoint Administrator) certification. Through in-depth articles and AI-powered practice exams, Souhaiel helps IT teams move faster and certify with confidence.

Related Articles

Popular on MSEndpoint