Improve company productivity with a Business Account.Sign Up
set regpath=HKLM\SOFTWARE\Microsoft\SMS\Mobile Client
reg query "%regpath%" /v "%regvalue%" | find /i "%regdata%"
if errorlevel 0 (
REM Run CCMCLEAN to remove SMS Adv Client
REM Delete CCM folder on C:\
RMDIR /S /Q %SYSTEMROOT%\system32\CCM
REM Delete CCMSETUP folder on C:\
RMDIR /S /Q %SYSTEMROOT%\system32\ccmsetup
REM Deletes SMS register folder
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS /f
Open in new window
sc query ccmexec | findstr "RUNNING"
If errorlevel 0 (
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.