Code:
@Echo Off
Title Sccm
cd %systemroot%\system32
call :IsAdmin
Reg.exe add "HKLM\SOFTWARE\Microsoft\CCM\CcmExec" /v "SystemTaskExcludes" /t REG_SZ /d "" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\CCM\CcmExec" /v "ProvisioningMode" /t REG_SZ /d "false" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\SMS\Mobile Client\Software Distribution\State" /v "Paused" /t REG_DWORD /d "0" /f
Reg.exe add "HKLM\SOFTWARE\Microsoft\SMS\Mobile Client\Software Distribution\State" /v "PausedCookie" /t REG_DWORD /d "0" /f
Exit
:IsAdmin
Reg.exe query "HKU\S-1-5-19\Environment"
If Not %ERRORLEVEL% EQU 0 (
Cls & Echo You must have administrator rights to continue ...
Pause & Exit
)
Cls
goto:eof
let say my computer have a the same folder in the registry but different value. by using this command it wont merge it. so how do i actually add in a merge with this ?
Last edited by a moderator:
My Computer
- OS
- windows 7 64bit