Applying Multiple Regedits At Once


  1. Posts : 84
    Windows 7 Professional
       #1

    Applying Multiple Regedits At Once


    Hello Everyone,

    With the many tweaks needed for Windows 7 I find that I have many regedits to run (files that end in .reg that apply edits to the registry). On top of having quite a few of them, with each reg file you run, Windows shows a popup message warning about applying items to the registry.

    My question is does anyone know of a way to run multiple regedit files all at once to avoid the process of having to run each one individually, and also avoiding each popup warning.

    Thank You
      My Computer


  2. Posts : 4,049
    W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
       #2

    Combined


    You could combine the contents of multiple reg files into one.

    If you open a couple of them in a text editor, you should see that they have a common section (at the top) and the registry key data.
    Simply copy the registry key data from the reg files into one file.

    Back up your Registry, or better yet create a backup HDD image, before using the new file.

    Applying Multiple Regedits At Once-reg-files-combined.png

    Last edited by lehnerus2000; 07 Sep 2014 at 21:04. Reason: Picture Added
      My Computer


  3. Posts : 6
    Windows 7 Home Premium 64
       #3

    Have you tried regedit -s <filename> ?
      My Computer


  4. Posts : 84
    Windows 7 Professional
    Thread Starter
       #4

    Hey Guys,

    Thank you for the responses.

    lehnerus2000
    I figured there would be some way to combine the text into one file, but I was not sure of the exact procedure. I thought maybe there would need to be something between each regedit.
    Thank you for providing the visual, I will give this a try.

    passmorel
    I looked up the command you recommended, are you referring to running the regedit "silently"?
    No I have not tried this, I was not aware of the command, but if I had to run each one individually by typing, it would probably be quicker to click "yes" in the popup warnings. Unless I am misinterpreting your answer? If I am please let me know.

    Thank You guys again, if you two have anymore information to share regarding my question, or if any others have anything else they would like to add, please let me know.
      My Computer


  5. Posts : 3,371
    W10 Pro desktop, W11 laptop, W11 Pro tablet (all 64-bit)
       #5

    miketurn1234 said:
    ...
    With the many tweaks needed for Windows 7 ...
    I'm curious. What many tweaks are needed? I haven't tweaked anything in the registry on my Win 7 machines and they run fine.
      My Computer


  6. Posts : 6
    Windows 7 Home Premium 64
       #6

    OK. So if you are doing this once, you can combine all the .reg files into a single file. As long as each section starts with the [Hive] and then the relevant keys & values that will be OK. Not sure if you need a blank line between each [Hive] set, but suspect not.
    If you want to enter the same settings on a regular basis then you can put multiple regedit commands into a .cmd file and run that.
      My Computer


  7. Posts : 31
    win7
       #7

    Open a dos box in the folder with the reg files and type

    for %f in (*.reg) do regedit.exe -s "%f"

    or the hard way in this case

    forfiles /M *.reg /C "cmd /c regedit.exe -s @path"

    Depending on the reg files you need admin rights to do this.

    Cheers
      My Computer


  8. Posts : 84
    Windows 7 Professional
    Thread Starter
       #8

    Thank you guys for all the responses, I will try some of these methods out to see what I like / works best.
      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 01:25.
Find Us