How to fix corrupt registry

27,840

Solution 1

There is a tool called SubInACL from Microsoft, which, with the correct commands, can go through the registry and fix permissions. However, I do not have a source for this because I only used it at the shop I worked at.

That said, I found another option from a fairly reliable source (while searching for "SubInACL"). Assuming that recovering from an earlier restore point is not possible, it may be worth looking at.

If you have Windows XP Professional, you can type in a single command to repair the registry. This command is

secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose

This only works with Windows XP Professional and will not have any effect on other versions.

Source: http://www.ehow.com/how_6666571_fix-windows-xp-registry-permissions.html

Solution 2

Start the Recovery Console, create a temporary folder, back up the existing registry files to a new location, delete the registry files at their existing location, and then copy the registry files from the repair folder to the System32\Config folder. When you have finished this procedure, a registry is created that you can use to start Windows XP. This registry was created and saved during the initial setup of Windows XP. Therefore any changes and settings that occurred after the Setup program was finished are lost.

To complete, follow these steps:

  1. Insert the Windows XP startup disk into the floppy disk drive, or insert the Windows XP CD-ROM into the CD-ROM drive, and then restart the computer. Click to select any options that are required to start the computer from the CD-ROM drive if you are prompted to do so.
  2. When the "Welcome to Setup" screen appears, press R to start the Recovery Console.
  3. If you have a dual-boot or multiple-boot computer, select the installation that you want to access from the Recovery Console.
  4. When you are prompted to do so, type the Administrator password. If the administrator password is blank, just press ENTER.
  5. At the Recovery Console command prompt, type the following lines, pressing ENTER after you type each line:
md tmp
copy c:\windows\system32\config\system c:\windows\tmp\system.bak
copy c:\windows\system32\config\software c:\windows\tmp\software.bak
copy c:\windows\system32\config\sam c:\windows\tmp\sam.bak
copy c:\windows\system32\config\security c:\windows\tmp\security.bak
copy c:\windows\system32\config\default c:\windows\tmp\default.bak
delete c:\windows\system32\config\system
delete c:\windows\system32\config\software
delete c:\windows\system32\config\sam
delete c:\windows\system32\config\security
delete c:\windows\system32\config\default
copy c:\windows\repair\system c:\windows\system32\config\system
copy c:\windows\repair\software c:\windows\system32\config\software
copy c:\windows\repair\sam c:\windows\system32\config\sam
copy c:\windows\repair\security c:\windows\system32\config\security
copy c:\windows\repair\default c:\windows\system32\config\default
  1. Type exit to quit Recovery Console. Your computer will restart.
Share:
27,840

Related videos on Youtube

ben950
Author by

ben950

Updated on September 18, 2022

Comments

  • ben950
    ben950 over 1 year

    my registry seems to have gone corrupt missing certain permissions and won't let me edit certain strings. How would I fix my registry?

    • Ghost Answer
      Ghost Answer about 12 years
      which OS you are using
    • ben950
      ben950 about 12 years
      sorry windows xp pro 32bit sp3
  • ben950
    ben950 almost 12 years
    Thank you. you have saved me from the pain of reinstlling xp =)
  • Admin
    Admin almost 12 years
    Always glad to be of assistance!
  • Thalys
    Thalys almost 12 years
    You could, in theory also do this from a livecd. Its one of those awesome, little known things.