Solved need help with command prompt command

junqi89

New member
Member
Local time
12:55 AM
Messages
75
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
By folder I assume you mean Key. The /f parameter you use should overwrite any current value. Are you saying that doesn't work?

If you remove /f and a value already exist for a key, you'll be prompted if you want to overwrite the current value. That's a good way of testing this.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Elitebook 8540p
OS
Windows 7 Pro 32
CPU
Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz
Motherboard
Hewlett-Packard 1521
Memory
4,00 GB (Usable 2,98)
Graphics Card(s)
NVIDIA NVS 5100M
Sound Card
NVIDIA High Definition Audio
Screen Resolution
1600x900
Hard Drives
INTEL SSDSA2CW120G3
Antivirus
F-Secure Internet Security
Browser
IE, Firefox, Opera
Other Info
Sandboxie,
SRP (Software Restriction Policy),
EMET (Enhanced Mitigation Experience Toolkit),
WFC (Windows Firewall Control by BiniSoft),
Malwarebytes Premium
  • Like
Reactions: Arc
By folder I assume you mean Key. The /f parameter you use should overwrite any current value. Are you saying that doesn't work?

If you remove /f and a value already exist for a key, you'll be prompted if you want to overwrite the current value. That's a good way of testing this.

thank you very much :D
 

My Computer

OS
windows 7 64bit
Back
Top