Recovering the Windows Registry

23 December 2004

Some advice in case you find yourself with the great good fortune of a corrupted Windows registry, indicated by the following message on startup:

Windows XP could not start because the following file is missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SYSTEM

There is an official Microsoft solution, but, as usual, it's incomplete. In particular, note that the warning not to use this procedure if “your computer has an OEM-installed operating system” has no alternate suggestion. Don't worry, the advice below should work whether or not your operating system was installed by the “original equipment manufacturer”, also known as the company that made your computer (e.g., Dell, Compaq).

First, some terminology. The Windows registry stores configuration information for Windows and the rest of the software on your computer, along with user accounts and other important data. It is kept in these so-called “registry hives”:

  • c:\windows\system32\config\system
  • c:\windows\system32\config\software
  • c:\windows\system32\config\sam
  • c:\windows\system32\config\security
  • c:\windows\system32\config\default

An initial backup copy of these files is found in c:\windows\repair, and regular snapshots are saved to C:\System Volume Information. To repair your computer, you must replace the current, corrupt registry “hives” with the initial backups, which restores enough functionality to enable recovery from a more recent snapshot.

But there's a catch or two. Following the previously mentioned official instructions unaltered will likely leave you worse off than you started. After booting from the Windows CD and launching the recovery console, restoring the registry from c:\windows\repair will overwrite all the user names and passwords on your computer. So that upon rebooting as directed in step two, you'll find yourself unable to login to your computer.

Here are two alternatives that may prevent this and allow you to successively repair your computer. The first is simpler, but I haven't tried it. Instead of all five of the files listed in step one of the Microsoft instructions, try copying only SYSTEM, or all the files except for SAM. This should leave your user names and passwords unchanged, allowing you to reboot, login to your computer, and follow the rest of the directions.

What I did instead was to copy all five registry files from c:\windows\repair and then use this utility for resetting Windows password. Burn it to CD and boot from that CD to reset the Administrator password between steps one and two of the Microsoft instructions. You'll then be able to log back into your system and access a more recent snapshot of your registry.

If, as in my case, the only working computer you can access is a Mac, you need to burn the password utility ISO CD image using the Disk Utility, not the finder. Otherwise, the other computer won't boot from the resultant CD. Disk Utility is in Applications:Utilities and you'll have to open the ISO image from the Open item in the Images menu.

This complicated process leaves me wondering why Microsoft doesn't allow access to your recent registry snapshots from the recovery console. Imagine how (relatively) easy it would be if the Windows CD offered a graphical utility to allow you to pick a registry snapshot by date, copy over the current one, and reboot. My mom might be able to do it. Is there some obtuse reason for believing that access to old copies of the registry is more of a security risk than access to the current registry? Or is this just an oversight? In any case, I hope that you and I won't have to restore another Windows registry anytime soon.

Comments

glad to note I'm still the standard to meet in designing software, ie. if I can do it so can everyone.
mom

Posted by linda mellis.


valium
http://wiki.esm.co.jp:8080/myswiki/23
valium
[URL="http://wiki.esm.co.jp:8080/myswiki/23"]valium[/URL]
tramadol online
http://wiki.esm.co.jp:8080/myswiki/24
tramadol online
[URL="http://wiki.esm.co.jp:8080/myswiki/24"]tramadol online[/URL]
xanax
http://wiki.esm.co.jp:8080/myswiki/22
xanax
[URL="http://wiki.esm.co.jp:8080/myswiki/22"]xanax[/URL]
generic viagra online
http://wiki.esm.co.jp:8080/myswiki/21
generic viagra online
[URL="http://wiki.esm.co.jp:8080/myswiki/21"]generic viagra online[/URL]

Posted by phentermine.


meridia
http://odinok.diaryland.com/
meridia
[URL="http://odinok.diaryland.com/"]meridia[/URL]
cheap paxil
http://opshons.diaryland.com/
cheap paxil
[URL="http://opshons.diaryland.com/"]cheap paxil[/URL]
viagra
http://xrun12.diaryland.com/
viagra
[URL="http://xrun12.diaryland.com/"]viagra[/URL]
tramadol
http://avgust123.diaryland.com/
tramadol
[URL="http://avgust123.diaryland.com/"]tramadol[/URL]
buy valium
http://pknik.diaryland.com/
buy valium
[URL="http://pknik.diaryland.com/"]buy valium[/URL]
cheap phentermine
http://egor123.diaryland.com/
cheap phentermine
[URL="http://egor123.diaryland.com/"]cheap phentermine[/URL]
generic viagra
http://ruchey.diaryland.com/
generic viagra
[URL="http://ruchey.diaryland.com/"]generic viagra[/URL]
generic cialis
http://more123.diaryland.com/
generic cialis
[URL="http://more123.diaryland.com/"]generic cialis[/URL]

Posted by phentermine.


phentermine
http://users.newblog.com/phentermineonline/
phentermine
[URL="http://users.newblog.com/phentermineonline/"]phentermine[/URL]
cialis
http://users.newblog.com/cialisonline/
cialis
[URL="http://users.newblog.com/cialisonline/"]cialis[/URL]
valium online
http://users.newblog.com/valium/
valium online
[URL="http://users.newblog.com/valium/"]valium online[/URL]
generic viagra
http://users.newblog.com/genericviagra/
generic viagra
[URL="http://users.newblog.com/genericviagra/"]generic viagra[/URL]
viagra online
http://users.newblog.com/viagraonline/
viagra online
[URL="http://users.newblog.com/viagraonline/"]viagra online[/URL]
tramadol
http://users.newblog.com/tramadol/
tramadol
[URL="http://users.newblog.com/tramadol/"]tramadol[/URL]

Posted by viagra.


valium online
http://apload.pbwiki.com/Valium
valium online
[URL="http://apload.pbwiki.com/Valium"]valium online[/URL]
diazepam online
http://egor.pbwiki.com/Diazepam
diazepam online
[URL="http://egor.pbwiki.com/Diazepam"]diazepam online[/URL]
phentermine
http://inna.pbwiki.com/Phentermine
phentermine
[URL="http://inna.pbwiki.com/Phentermine"]phentermine[/URL]

Posted by meridia.


meridia
http://www.justachat.com/blog/?w=valentin0
meridia
[URL="http://www.justachat.com/blog/?w=valentin0"]meridia[/URL]
buy viagra
http://www.justachat.com/blog/?w=xrun
buy viagra
[URL="http://www.justachat.com/blog/?w=xrun"]buy viagra[/URL]
buy xanax
http://www.justachat.com/blog/?w=ignor
buy xanax
[URL="http://www.justachat.com/blog/?w=ignor"]buy xanax[/URL]

Posted by tramadol.


valium online
http://klient.forumup.com
valium online
[URL="http://klient.forumup.com"]valium online[/URL]
xanax online
http://tina.forumup.com
xanax online
[URL="http://tina.forumup.com"]xanax online[/URL]
buy viagra
http://xrun.forumup.com
buy viagra
[URL="http://xrun.forumup.com"]buy viagra[/URL]
generic viagra
http://trees.forumup.com
generic viagra
[URL="http://trees.forumup.com"]generic viagra[/URL]

Posted by viagra.


viagra
http://www.usmle.net/step-3/messages2006b/167286.html
viagra
[URL="http://www.usmle.net/step-3/messages2006b/167286.html"]viagra[/URL]
xanax
http://www.usmle.net/step-3/messages2006b/167291.html
xanax
[URL="http://www.usmle.net/step-3/messages2006b/167291.html"]xanax[/URL]
phentermine
http://www.usmle.net/step-3/messages2006b/167288.html
phentermine
[URL="http://www.usmle.net/step-3/messages2006b/167288.html"]phentermine[/URL]
cialis
http://www.usmle.net/step-3/messages2006b/167287.html
cialis
[URL="http://www.usmle.net/step-3/messages2006b/167287.html"]cialis[/URL]
tramadol
http://www.usmle.net/step-3/messages2006b/167292.html
tramadol
[URL="http://www.usmle.net/step-3/messages2006b/167292.html"]tramadol[/URL]
valium
http://www.usmle.net/step-3/messages2006b/167293.html
valium
[URL="http://www.usmle.net/step-3/messages2006b/167293.html"]valium[/URL]

Posted by valium.


phentermine online
http://www.hostingphpbb.com/forum/inna.html
phentermine online
[URL="http://www.hostingphpbb.com/forum/inna.html"]phentermine online[/URL]

Posted by cialis.


tramadol
http://igrushki.iphpbb.com
tramadol
[URL="http://igrushki.iphpbb.com"]tramadol[/URL]
cialis
http://inna1969.iphpbb.com
cialis
[URL="http://inna1969.iphpbb.com"]cialis[/URL]
hydrocodone
http://penishe.iphpbb.com
hydrocodone
[URL="http://penishe.iphpbb.com"]hydrocodone[/URL]
generic viagra
http://derevo.iphpbb.com
generic viagra
[URL="http://derevo.iphpbb.com"]generic viagra[/URL]

Posted by cialis.


buy xanax
http://igrok.boardcity.com
buy xanax
[URL="http://igrok.boardcity.com"]buy xanax[/URL]
buy generic viagra
http://dyatel.boardcity.com
buy generic viagra
[URL="http://dyatel.boardcity.com"]buy generic viagra[/URL]
paxil
http://medved.boardcity.com
paxil
[URL="http://medved.boardcity.com"]paxil[/URL]
generic cialis
http://vorobeq.boardcity.com
generic cialis
[URL="http://vorobeq.boardcity.com"]generic cialis[/URL]
buy cialis
http://egor.boardcity.com
buy cialis
[URL="http://egor.boardcity.com"]buy cialis[/URL]
tramadol
http://inna.boardcity.com
tramadol
[URL="http://inna.boardcity.com"]tramadol[/URL]

Posted by viagra.


tramadol online
http://blog.azpoint.net/blog/tramadol_online/
tramadol online
[URL="http://blog.azpoint.net/blog/tramadol_online/"]tramadol online[/URL]
phentermine
http://blog.azpoint.net/blog/phentermine_online/
phentermine
[URL="http://blog.azpoint.net/blog/phentermine_online/"]phentermine[/URL]
adipex online
http://blog.azpoint.net/blog/adipex_online/
adipex online
[URL="http://blog.azpoint.net/blog/adipex_online/"]adipex online[/URL]
valium
http://blog.azpoint.net/blog/valium_online/
valium
[URL="http://blog.azpoint.net/blog/valium_online/"]valium[/URL]

Posted by viagra.


buy phentermine
http://121166.www.blox.pl/html
buy phentermine
[URL="http://121166.www.blox.pl/html"]buy phentermine[/URL]
viagra
http://ignor.blox.pl/html/1310721.html
viagra
[URL="http://ignor.blox.pl/html/1310721.html"]viagra[/URL]
buy valium
http://121171.www.blox.pl/html/
buy valium
[URL="http://121171.www.blox.pl/html/"]buy valium[/URL]

Posted by phentermine.


buy tramadol
http://phpbb.forumgratis.com/?mforum=sneg
buy tramadol
[URL="http://phpbb.forumgratis.com/?mforum=sneg"]buy tramadol[/URL]
buy cialis
http://phpbb.forumgratis.com/?mforum=medved
buy cialis
[URL="http://phpbb.forumgratis.com/?mforum=medved"]buy cialis[/URL]
buy valium
http://phpbb.forumgratis.com/?mforum=super
buy valium
[URL="http://phpbb.forumgratis.com/?mforum=super"]buy valium[/URL]

Posted by cialis.