Saving and restoring the registry under Windows 7


  1. Posts : 26
    Windows 7 Professional SP1 64bit
       #1

    Saving and restoring the registry under Windows 7


    Hello,

    My problem is about saving and restoring the registry under Windows 7.

    I made a backup of my registry (using the "File -> Export" menu in "regedit.exe").

    Then I tried to restore it as is using the "File -> Import" menu in "regedit.exe" (and I also tried using the command "reg import" in command line in "safe mode with command line").
    It fails.
    Fortunately I was on a test machine.
    I'm very concerned about not knowing how to properly save and restore my registry.

    Thank you for helping.
    Best regards.
      My Computer


  2. Posts : 71,980
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Lea,

    The problem with using that method is that you will not be able to completely restore all of the registry since it's currently in use.

    One option would be to create restore points that would include a back of the full registry. A system restore would restore the registry to how it was in the selected restore point. Another option would be to create a system image. It includes everything. Hope this helps, :)
    Shawn
      My Computer


  3. Posts : 26
    Windows 7 Professional SP1 64bit
    Thread Starter
       #3

    Hello Shawn,

    Thank you for your answer which helps.
    I have used the three following documents to test a system restore and it was successful.

    1) Windows 7: System Restore Point - Create
    h ttp://www.sevenforums.com/tutorials/697-system-restore-point-create.html

    2) How to Boot to the System Recovery Options in Windows 7 (Using a Windows 7 Installation or System Repair Disc)
    h ttp://www.sevenforums.com/tutorials/668-system-recovery-options.html

    3) How to Do a System Restore in Windows 7
    h ttp://www.sevenforums.com/tutorials/700-system-restore.html

    Have a good day.
    Best regards.
    Last edited by Lea Massiot; 20 Nov 2013 at 04:56. Reason: Beware of the space between "h" and "ttp" in the links above.
      My Computer


  4. Posts : 26
    Windows 7 Professional SP1 64bit
    Thread Starter
       #4

    Hello,

    It's me again.
    I just would like to know if it's possible to create a system restore point in command line (to put it in a .bat file later) and if yes, how?

    Thank you for helping.
    Best regards.
      My Computer


  5. Posts : 71,980
    64-bit Windows 11 Pro for Workstations
       #5

    You're most welcome Lea,

    If you like, you could use either of the shortcuts in the tutorial below to create a system restore with at will. You could run the shortcut as is, in a command prompt, or use the .vbs file directly.

    System Restore Point Shortcut

    Hope this may work for that. :)
      My Computer


  6. Posts : 26
    Windows 7 Professional SP1 64bit
    Thread Starter
       #6

    Hello and thank you for your answer :).

    I'm not familiar with VBS. I would have preferred a simple ".bat" script...
    Yet, I tested the first script available in the page you pointed me to (h ttp://www.sevenforums.com/tutorials/494-system-restore-point-shortcut.html).
    This script simply creates a restore point "Instant Restore Point" and can be executed from the command line:
    HTML Code:
    cmd.exe> Instant_Restore_Point.vbs
    It worked.

    Thank you and best regards.
      My Computer


  7. Posts : 71,980
    64-bit Windows 11 Pro for Workstations
       #7

    You're most welcome. I'm glad that'll work for you. :)

    Yeah, I would have like to have used .bat as well, but .vbs only had the commands for what it needed to work properly.
      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 21:50.
Find Us