
Error messages similar to the following are displayed
Windows XP could not start because the following file is missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SYSTEM
Windows XP could not start because the following file is missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SOFTWARE
Stop: c0000218 {Registry File Failure} The registry cannot load the hive (file): \SystemRoot\System32\Config\SOFTWARE or its log or alternate
Please Take 5 minutes and read this thoroughly!!!!!!
It will save you many many many hours of frustration later!!!!!
(It is highly recommended you print this file out for future reference since it will not be available on your computer)
DO NOT REFORMAT YOUR HARD DRIVE.
Read this entire article before starting, only takes a few minutes and could save you hours.
It is not essential you read the recovery console help section.
Since you were just about to reformat your hard drive and start all over installing and registering your applications and restoring your backed up data you have little to lose, however
Use at your own risk,
Don't let this warning scare you too much. This app note is a compilation of several Microsoft technical files and not my own creation. Similar if not identical procedures are described elsewhere on the internet so it is a generally accepted process.
This article assumes that normal recovery methods have failed and access to the system is not available except by using Recovery Console.
You should have tried "SAFE MODE" and "restore last known good configuration" from the advanced startups available by pressing F8 in the first few seconds of a reboot and before windows tries to load.
If an Automatic System Recovery (ASR) backup exists, it is the preferred method for recovery; it is recommended that you use the ASR backup before you try the procedure described in this article.
While you still can!!!! Create the following files in the C:\windows\ directory. This is important since recovery console can only access the C:\windows directory.
You can do so by copying and pasting the text below into notepad and save-as the result to C:\windows.
regcopy1.txt (title of file, not included in file.)
and
regcopy2.txt (title of file, not included in file.)
del c:\windows\system32\config\sam
del c:\windows\system32\config\security
del c:\windows\system32\config\software
del c:\windows\system32\config\default
del c:\windows\system32\config\system
copy c:\windows\tmp\_registry_machine_software c:\windows\system32\config\software
copy c:\windows\tmp\_registry_machine_system c:\windows\system32\config\system
copy c:\windows\tmp\_registry_machine_sam c:\windows\system32\config\sam
copy c:\windows\tmp\_registry_machine_security c:\windows\system32\config\security
copy c:\windows\tmp\_registry_user_.default c:\windows\system32\config\default
In addition is is convenient to install the recovery console, described below, as a STARTUP OPTION in the boot menu which appears following a reboot.
NOTE: a boot menu does not appear unless you have multiple operating systems. Recovery Console is an additional operating system so the boot menu will appear if it is installed.
Instructions for its use are below. ,however you don't need to read them because you are going to use only one of it's commands, "batch", and that is explicitly called out in the recovery instructions below.
You can install the Recovery Console on your computer to make it available in case you
are unable to restart Windows. You can then select the Recovery Console option from the
list of available operating systems on startup. It is wise to install the Recovery Console
on important servers, and on the workstations of IT personnel. This article describes how
you can install the Recovery Console to your Windows XP computer. To install the Recovery
Console, you must have administrative rights on the computer.
Although you can run the Recovery console by booting directly from the Windows XP CD, it's
much more convenient to set it up as a startup option on your boot menu. To run directly
by booting from the CD see the "Using the Recovery Console" section later in
this article.
To install the Recovery Console, perform the following steps:
By the way, the time that the boot menu is displayed defaults to 30 seconds but can be changed from the "my computer" properties

This step-by-step article describes how to use Group Policy to add more power to the
Recovery Console. Windows XP provides a Group Policy that lets you add power to the
commands that are available in the Recovery Console. Under normal conditions, the Recovery
Console imposes limits on the environment in which it operates.
If you pre-install the Recovery Console on a computer, you should use Group Policy to enhance the environment settings, adding power to the available file operations. To do so:
After you have enabled this Group Policy, when you enter the Recovery Console you can
change the environment settings with the set command, by using the set variable
= TRUE or FALSE syntax.
NOTE: Be sure to use a space on each side of the equal sign. If you do
not, the set command generates a "syntax error" error message and
does not work.
The following variables define the default environment. The variables, when set to TRUE,
enlarge the scope of the environment setting and have the following meanings:
To see the current settings for the environment, type set without parameters at a command prompt.
This article describes how to recover a Windows XP system that does not start
because of corruption in the registry. This procedure does not guarantee full recovery of
the system to a previous state; however, you should get very close. I've always gotten
full recovery.
In part 1 ,using the recovery console, you restore the registry
to it's virgin installed configuration as if you had just installed XP. This allow you to
boot to an operable verson of XP. The file regcopy1.txt you
created above does this for you.
In part 2, using the operable version, you find a
recent version of the registry and copy it to a C:\Windows\Tmp
directory.
In part 3, using the recovery console, you replace the virgin
installed configuration with the version copied to the C:\Windows\Tmp directory. The file regcopy2.txt you created above does this for you.
In part 4 you boot to that version of XP and then use "System Restore" to restore to the last known good configuration.
A TESTED idea that skips parts 1 and 2 in the future (after having run all 4 parts at least once) Make sure you read this one since it will make recovery very quick, especially if you have recovery console installed.
In part one, you boot to 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 are finished with this procedure, a registry is created that you can use to boot back into Windows XP. This registry was created and saved during the initial install of Windows XP.
You do this by running the regcopy1.txt you created above or by manually typing in the commands
described in it.
To complete part one, follow these steps:
c:\windows\batch regcopy1.txt
|
At this point you are the same as if you had reformatted your hard drive and installed XP for the first time and you would have lost all data files, emails, internet settings and everything else that had happened since the initial install. You would then have to spend about a full day reinstalling and re-registering all your applications and restoring any backup data files you were smart enough to make.
HOWEVER, you did not reformat your hard drive and all that stuff is still there. The following parts will get you back to full restore in about 15 minutes
To complete the procedure described in this section, you must be logged on as an administrator, or an administrative user (a user who has an account in the Administrators group).
In part two, you copy the registry files from their backed up location by System Restore. This folder is not available in Recovery Console and is normally not visible during normal usage. Before you start this procedure, you must change several settings to make the folder visible:
Open the System Volume Information folder. This folder
appears dimmed folder because it is set as a super-hidden folder.

NOTE: You may receive the following error message:
C:\System Volume Information is not accessible. Access is denied.

If you get this message, see the following:
309531 How to Gain Access to the System Volume Information Folder Windows XP Professional using the NTFS File System on a Workgroup or Standalone Computer
|
This folder contains one or more _restore {GUID} folders such as "_restore{87BD3667-3246-476B-923F-F86E30B3E7F8}".

Open any _restore folder that was not created at the current time. Best to pick one at least a day old. You may have to click Details on the View menu to see when these folders were created.
If the _restore folder contains only RP0 and RP1 do not use this folder. You should find one containing many RPxxx folders depending on how long your system has been in operation.
Open one of these folders to locate a Snapshot subfolder folder; the following path is an example of a folder path to the Snapshot folder:
C:\System Volume Information\_restore{D86480E3-73EF-47BC-A0EB-A81BE6EE3ED8}\RP290\Snapshot
Typical contents of a snapshot folder is shown below
From the Snapshot folder, copy the following files (usually the first 5) and paste to the C:\Windows\Tmp folder:
using the standard Windows Copy and Paste functions.
In part three, you delete the existing registry files, and then copy the System Restore Registry files to the C:\Windows\System32\Config folder:
You do this by running the regcopy2.txt you created above or by manually typing in the commands described in it.
RUN: C:\windows\batch regcopy2.txt
|
Type exit to quit Recovery Console. Your computer will restart to the previous version of XP.
You will not lose any data from documents you created or from your email accounts.
If not and you are still getting boot errors or other errors (like one time it locked up when trying to register the software over the internet) then repeat the process using a different restore point.
Apparently XP will actually create a restore point that contains a corrupted registery file. You have to find a snapshot folder that has good files. Try going back to and even earlier one such as two or three days ago.
After you have done the full 4 step procedure once there is a simplified approach that skips part 1 and part 2.
Since the function of parts 1 and 2 was to provide a usable version of XP for the sole purpose of copying a recent version of the registry to C:\windows\tmp, and since this was already done by a previous execution of parts 1 and 2 then it stands to reason you should not have to repeat them next time.
Here's a late breaking thought, GO AHEAD AND EXECUTE PART 2 RIGHT NOW and you will never have to run PART 1. Then you will probably not be bothered to re-activate windows. |
Create a REGrestore.txt file in C:\windows. This utilizes the known good registry files you put in the C:\Windows\Tmp directory in PART 2 on your last bomb out of XP and immediately replaces them with that version.
You could also just run Regcopy2.txt. REGrestore is identical to Regcopy2 except it saves the existing registry files in C:\windows\tmp as .bak files. Not really necessary mainly because there was something wrong with them anyway. But doesn't hurt to do it.
This should allow you to then do PART 4, using system restore to get back to date.
REGrestore.txt
copy c:\windows\system32\config\system c:\windows\tmp\system1.bak
copy c:\windows\system32\config\software c:\windows\tmp\software1.bak
copy c:\windows\system32\config\sam c:\windows\tmp\sam1.bak
copy c:\windows\system32\config\security c:\windows\tmp\security1.bak
copy c:\windows\system32\config\default c:\windows\tmp\default1.bak
del c:\windows\system32\config\sam
del c:\windows\system32\config\security
del c:\windows\system32\config\software
del c:\windows\system32\config\default
del c:\windows\system32\config\system
copy c:\windows\tmp\_registry_machine_software c:\windows\system32\config\software
copy c:\windows\tmp\_registry_machine_system c:\windows\system32\config\system
copy c:\windows\tmp\_registry_machine_sam c:\windows\system32\config\sam
copy c:\windows\tmp\_registry_machine_security c:\windows\system32\config\security
copy c:\windows\tmp\_registry_user_.default c:\windows\system32\config\default
RUN: C:\windows\batch regrestore.txt
|
Type exit to quit Recovery Console. Your computer will restart to the recent version of XP.
From there repeat PART 4 using system restore to get up to date. DO NOT skip this step as there is more to system restore than just the registry. It also restores previous versions of drivers and God knows what else. If a bad driver update is what bombed XP on your system this will put the old version back in place of the bad one.
When I tried this process I did not have to re-activate XP which eliminates another irritating step.
Windows XP forgets my folder view settings. Is there a fix?
How to delete a zero byte file. such as "search[1]", that cannot be deleted in Windows.
Cannot open folders, all functions incredibly slow, continuous flickering drive light.
- This web based email will delete any and all emails you tell it to you will need your email address and password. What with all the spam these days I have to use this about once a week.
http://www.kellys-korner-xp.com/xp.htm
I had a case where I could not open any folders (via shortcuts at least), the system was incredibly slow, I mean minutes instead of seconds to execute a function, and the drive light was flickering almost continuously. Restarting did not fix it. Turning machine off and then back on, to erase all of memory, did not fix it.
I resorted to an old trick I used with Win 98 when strange things like that happened.
Reboot in SAFE MODE (F8 during boot up of Windows)
All you do in SAFE MODE is select START / Turn off Computer / Restart and reboot to normal XP.
Have no idea what that does but it fixes the problem.
While I never had any registry problems with Win98 here is some recovery information that could come in handy.
Fixing a Corrupted Registry with Registry Checker
In Windows 98, a backup copy of the Registry is always made when you start your
computer. This way you always have a "clean" copy of the Registry available, in
case it gets corrupted while you're using Windows. Every time Windows starts, a hidden
program called Registry Checker automatically scans your Registry for errors; if it
notices a problem, it replaces the current version of the Registry with the
"clean" backup copy.
This article was previously published under Q307654
The Windows Recovery console is designed to help you recover when your Windows-Based
computer does not start properly or does not start at all. If Safe mode and other startup
options do not work, you can consider using the Recovery Console. This method is
recommended only if you are an advanced user who can use basic commands to identify and
locate problem drivers and files. In addition, you must be an administrator to use the
Recovery Console.
back to the top
You can install the Recovery Console on your computer to make it available in case you
are unable to restart Windows. You can then select the Recovery Console option from the
list of available operating systems on startup. It is wise to install the Recovery Console
on important servers, and on the workstations of IT personnel. This article describes how
you can install the Recovery Console to your Windows XP computer. To install the Recovery
Console, you must have administrative rights on the computer.
Although you can run the Recovery console by booting directly from the Windows XP CD, it's
much more convenient to set it up as a startup option on your boot menu. To run directly
by booting from the CD see the "Using the Recovery Console" section later in
this article.
To install the Recovery Console, perform the following steps:
NOTE: Alternatively, you can use a UNC to install the Recovery Console
from a network share point.
back to the top
You can enable and disable services, format drives, read and write data on a local
drive (including drives that are formatted to use the NT File System (NTFS), and perform
many other administrative tasks. The Recovery Console is particularly useful if you need
to repair your computer by copying a file from a disk or CD-ROM to your hard disk, or if
you need to reconfigure a service that is preventing your computer from starting properly.
If you cannot start your computer, you can run the Recovery Console from the Microsoft
Windows XP startup disks or the Windows XP CD-ROM. This article describes how to perform
this task.
After Windows XP is installed on your computer, to start the computer and use the Recovery
Console you need the Windows XP startup disks or the Windows XP CD-ROM.
For additional information about how to create Startup disks for Windows XP (they are not
included with Windows XP), click the article number below to view the article in the
Microsoft Knowledge Base:
310994 Obtaining Windows XP Setup Boot Disks
NOTE: To start the computer from the Windows XP CD-ROM, you need to
configure the basic input/output system (BIOS) of the computer to boot from your CD-ROM
drive.
To run the Recovery Console from the Windows XP startup disks or the Windows XP CD-ROM,
use the following steps:
When you use the Recovery Console, you are working at a special command prompt rather
than the usual Windows command prompt. The Recovery Console has its own command
interpreter. To enter this command interpreter, you are prompted by Recovery Console to
type the Administrator password (the local Administrator, not a domain Administrator).
When the Recovery Console starts, you have the opportunity to press F6 to install a
third-party SCSI or RAID driver, in case you need such a driver to access the hard disk.
This prompt works the same as it does during installation of the operating system.
The Recovery Console takes a few seconds to start. When the Recovery Console menu is
displayed, a numbered list of the Windows installations on the computer is displayed
(usually only one entry-c:\Windows-exists). Press a number before you press ENTER, even
when only one entry appears. If you press ENTER without choosing a number, the computer
restarts and begins the process again.
When you see the prompt for %SystemRoot% (usually C:\Windows), you can begin using the
available commands for the Recovery Console.
back to the top
The following list describes the available commands for the Recovery Console:
Enable enables a Windows system service or driver. The variable service_or_driver is the name of the service or driver that you want to enable, and start_type is the startup type for an enabled service. The startup type uses one of the following formats:
SERVICE_BOOT_START
SERVICE_SYSTEM_START
SERVICE_AUTO_START
SERVICE_DEMAND_START
NET
USE [devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username] [/USER:[dotted domain name\]username] [/USER:[username@dotted
domain name] [/SMARTCARD] [/SAVECRED] [[/DELETE] | [/PERSISTENT:{YES |
NO}]] NET USE {devicename | *} [password | *] /HOME NET USE [/PERSISTENT:{YES
| NO}]
Several environment rules are in effect while you are working in the Recovery Console. Type set to see the current environment. By default, these are the rules:
To delete the Recovery Console:
WARNING: Modifying the Boot.ini file incorrectly may prevent your computer from restarting. Be sure to delete only the entry for the Recovery Console. Also, it is recommended that you change the attribute for the Boot.ini file back to a read-only state after you complete this procedure. Open the Boot.ini file in Microsoft Windows Notepad, and remove the entry for the Recovery Console. It looks similar to this:
C:\cmdcons\bootsect.dat="Microsoft Windows Recovery Console" /cmdcons