need help with command prompt command


  1. Posts : 75
    windows 7 64bit
       #1

    need help with command prompt command


    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 Brink; 26 Sep 2014 at 09:56. Reason: code box
      My Computer


  2. Posts : 1,049
    Windows 7 Pro 32
       #2

    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


  3. Posts : 75
    windows 7 64bit
    Thread Starter
       #3

    Tookeri said:
    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
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:02.
Find Us