Several different ways. You can use:
- Custom Vulnerability through Security and Patch
- Batch file using the REG.EXE command
- Scripting - Autoit, Powershell, Vbscript, etc...
The easiest way for me would be to locate the modified registry keys and export then create a batch file similar to the following
regedit /s sample.reg
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.
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
reg add HKLM\Software\Somekey /v Data /t REG_DWORD /d 0
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.
Hope this helps
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.