Is it possible to restore a previous Windows registry state without Scanreg.exe?
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.
- Boot from the Windows installation media (DVD).
- Select Language to install, Time and currency format, and Keyboard or input method.
- Click Next.
- Click Repair your computer.
- 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.
- 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.
- 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).
- Boot into Windows
- insert the Windows DVD
- run setup.exe from DVD
- in setup select "Upgrade".
Related videos on Youtube
![Samir](https://i.stack.imgur.com/oy3bE.png?s=256&g=1)
Samir
Tell me and I forget. Teach me and I remember. Engage me and I learn.
Updated on September 18, 2022Comments
-
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 about 11 yearsDoes windows boot at all?
-
-
Samir about 11 yearsI can see how this could be helpful. It doesn't quite answer the question but this is very good stuff. Thanks for sharing!
-
Samir about 11 yearsQuite 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 about 11 yearsok, great to hear this :)
-
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 about 11 yearsUnfortunately 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 tocd
to this location. Is this normal? -
cybernard about 11 yearsThe LiveCD is mount to X: c:\windows\system32\config is the real registry
-
Samir about 11 yearsSo the installed Windows system is offline when I'm in Command Prompt in WinRE? But when I do
c:
and thencd windows\system32\config
it says not found. Is it because it is hidden?... Should I useattrib -s -h
to show it? -
cybernard about 11 yearstry 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 about 11 yearsAt 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 about 11 yearsyes you should be able to see that folder.