net stop ccmexec
net stop ccmsetup
C:\Windows\ccmsetup\ccmsetup.exe /uninstall
timeout /T 120 >nul
rd c:\windows\ccm  /S /Q
rd c:\windows\ccmcache /S /Q
rd c:\windows\ccmsetup  /S /Q
del c:\windows\smscfg.ini
reg delete HKLM\software\Microsoft\ccm  /f
reg delete HKLM\System\CurrentControlSet\Services\clisvcl   /f
reg delete HKLM\System\CurrentControlSet\Services\ccmexec   /f
reg delete HKLM\Software\Microsoft\NAL   /f
reg delete HKLM\software\Microsoft\CCMSETUP /f
reg delete HKLM\software\Microsoft\SMS /f
reg delete HKLM\software\Microsoft\Systemcertificates\SMS\Certificates /f
timeout /T 120 >nul
rd c:\windows\ccm  /S /Q
::shutdown /r /t 300