4 Replies Latest reply on Nov 10, 2010 8:44 AM by zman

    How to Push Registry Keys through Landesk

    Rookie

      Hi ,

       

      Please let me know if there is any way to push registry keys through Landesk.

       

      Thanks in Advance.

        • 1. Re: How to Push Registry Keys through Landesk
          zman Master

          Several different ways. You can use:

          1. Custom Vulnerability through Security and Patch
          2. Batch file using the REG.EXE command
          3. Scripting - Autoit, Powershell, Vbscript, etc...
          • 2. Re: How to Push Registry Keys through Landesk
            Rookie

            The easiest way for me would be to locate the modified registry keys and export then create a batch file similar to the following

             

            @ECHO OFF
            regedit /s sample.reg
            cls

             

            Then create a distribution/package with the .bat and .reg file.

            The primary executable in the package would be the .bat which would call the .reg file.

            • 3. Re: How to Push Registry Keys through Landesk
              JBnCO Apprentice

              Rolljn is correct.  The best way would be to export the settings you want into .reg file and then use the reg command to import it with a /s command so it is silent.  I would typically wrap the batch and registry file into a .exe using Wise Installer, Package Builder, or Admin Studio.  The alternative would be to just put the reg changes/additions you want into a batch file natively so you wouldn't have to have the dependancy for the .reg file for the batch file.  This can be done by doing this:

               

              REM Begining of Batch

              @ECHO Off

              reg add HKLM\Software\Somekey /v Data /t REG_DWORD /d 0

              exit

              REM End of Batch

               

              You could add the /f at the end of each line if you are updating info.

               

              If you really want to get crazy with Batch...this web site has a lot of knowledge about batch files from simple to complex.

               

              http://www.robvanderwoude.com/batchfiles.php

               

              Hope this helps

              • 4. Re: How to Push Registry Keys through Landesk
                zman Master

                All very good ideas. I think it all depends on how many reg keys. If not too many the REG.EXE command is cool since there are no additional files and need for wrappers and can trap error codes.