Is it possible to restore a previous Windows registry state without Scanreg.exe?

16,545

Solution 1

There is a way to restore the registry if System Restore is enabled.

If you can boot into Windows you can use System Restore to restore the registry by restoring the system to a restore point before the incident.

If you cannot boot into Windows, you can try booting into Windows safe mode. You can use System Restore from safe mode as well.

If you cannot boot into Windows normal mode nor into safe mode, you can try performing a startup repair, and at the same time restore the system to a restore point before the incident by using WinPE/WinRE.

  1. Boot from the Windows installation media (DVD).
  2. Select Language to install, Time and currency format, and Keyboard or input method.
  3. Click Next.
  4. Click Repair your computer.
  5. If the System Recovery Options dialog shows up, allow it to scan for Windows installations and follow the instructions shown on screen. It should give you the option to restore the system from a restore point.
  6. If you are not prompted to restore from a restore point, or if no startup errors are found you should see the main System Recovery Options screen.
  7. Click on System Restore and follow the instructions to restore from a restore point before the incident.

If you want to restore only the Windows registry you will have to do it manually. System Restore stores its Restore Points (RP) in a folder called _Restore{#} where # represents a Hex number. It is located in C:\System Volume Information. You will have to take ownership of this folder and all of its subfolders. Each restore point has its own folder of the format RP### where the ### stands for a 3-digit number.

After taking ownership of the C:\System Volume Information folder and its subfolders, locate the RP folder that goes back to a date before the incident.

For example, to restore Windows registry from restore point 100, issue following commands in a command prompt.

cd c:\system volume information\_restore{#}\rp100\snapshot
copy _REGISTRY_MACHINE_COMPONENTS c:\windows\system32\config\COMPONENTS
copy _REGISTRY_MACHINE_SECURITY c:\windows\system32\config\SECURITY
copy _REGISTRY_MACHINE_SYSTEM c:\windows\system32\config\SYSTEM
copy _REGISTRY_MACHINE_SOFTWARE c:\windows\system32\config\SOFTWARE

You don't have to copy them all unless you need to or you want to.

Reboot and the registry should be restored.

Solution 2

There is no such thing. If you messed up the registry, do the repair installation (look at your other question about installing Vista over Vista).

  1. Boot into Windows
  2. insert the Windows DVD
  3. run setup.exe from DVD
  4. in setup select "Upgrade".
Share:
16,545

Related videos on Youtube

Samir
Author by

Samir

Tell me and I forget. Teach me and I remember. Engage me and I learn.

Updated on September 18, 2022

Comments

  • Samir
    Samir almost 2 years

    I messed up the Windows registry. I should be able to restore it to a previous state because Windows keeps a backup in C:\Windows\System32\Config I think. There used to be a tool called Windows Registry Checker Tool (scanreg.exe) that would allow you to not only restore to a previous Windows registry state but also to take backup of the current one, by using one of the two commands below.

    scanreg /restore

    scanreg /backup

    But I am using Windows Vista, and apparently they have removed this from Vista and newer versions of Windows. So how do I do something like this in Windows Vista? Is there an alternative to scanreg.exe? Is there another way to backup and restore Windows registry?

    • cybernard
      cybernard about 11 years
      Does windows boot at all?
  • Samir
    Samir about 11 years
    I can see how this could be helpful. It doesn't quite answer the question but this is very good stuff. Thanks for sharing!
  • Samir
    Samir about 11 years
    Quite right! Thank you! As you have noticed, I have posted several questions lately regarding different Windows system tools, as part of my efforts to resolve the issue with the audio service. I didn't want to make one gigantic post/question. I think splitting it up like this makes it easier for others who have the same issue to find the questions and answers. The chances are also greater that someone will answer if the question is short and concise. I kept posting questions as I encountered new errors while troubleshooting. But you are right, doing a repair installation solved the issue.
  • magicandre1981
    magicandre1981 about 11 years
    ok, great to hear this :)
  • cybernard
    cybernard about 11 years
    @Sammy "restore to a previous Windows registry state" Since scanreg is gone this is the next best alternative. Create a new restore point and a new registry backup is taken. You can access the hidden folders above to get at all the backup registries.
  • Samir
    Samir about 11 years
    Unfortunately System Restore was disabled before the incident. So I didn't have the option to restore the registry that way. Or to try to restore to the previous restore point. But I didn't see the path C\Windows\System32\Config when I booted from Windows DVD and opened Command Prompt and tried to cd to this location. Is this normal?
  • cybernard
    cybernard about 11 years
    The LiveCD is mount to X: c:\windows\system32\config is the real registry
  • Samir
    Samir about 11 years
    So the installed Windows system is offline when I'm in Command Prompt in WinRE? But when I do c: and then cd windows\system32\config it says not found. Is it because it is hidden?... Should I use attrib -s -h to show it?
  • cybernard
    cybernard about 11 years
    try cd \windows\system32\config The / you missed actually makes a big difference. It only looks in the current directory. So if you were in c:\users and did "cd windows\system32\config" it would never work.
  • Samir
    Samir about 11 years
    At first I was at x:\ and then I typed in c: and hit Enter. It brought me to c:\ so I only switched the drive letter and it gave me the root of c. That's why I assumed that cd windows\system32\config should work as good as cd \windows\system32\config. I will check it now. But you are saying that I should be able to see c:\windows\system32\config from within Command Prompt when I boot from Windows DVD?
  • cybernard
    cybernard about 11 years
    yes you should be able to see that folder.