Article ID: 315241
Article Last Modified on 3/29/2004
APPLIES TO
- Microsoft Windows XP Home Edition
- Microsoft Windows XP Professional Edition
This article was previously published under Q315241
SYMPTOMS
When you start Windows XP, you may receive one of the following error messages:
-or-
-or-
DriverName
is the name of the device driver file.
CAUSE
This behavior can occur if one of the following conditions is true:
- A device driver file (.sys) is missing or damaged.
The missing or damaged file is probably the driver file that the error message mentions.
- The User32.dll file may be missing or damaged.
RESOLUTION
To resolve this behavior, use the appropriate method for your symptoms.
Missing or Damaged Driver File
Use Recovery Console to replace the missing or damaged driver file. To do so, follow these steps:
- Insert the Windows XP CD-ROM into the CD-ROM or DVD-ROM drive, and then restart the computer. Select any options that are required to start the computer from the CD-ROM or DVD-ROM drive if you are prompted to do so.
- When the "Welcome to Setup" screen appears, press R to start Recovery Console.
- If your computer is configured for dual booting or multiple booting, select the relevant Windows XP installation.
- When you are prompted to do so, type the administrator password, and then press ENTER.
Note In Windows XP Home Edition, the administrator password is\ blank by default. - At the command prompt, type the following command, and then press ENTER:
cd windows\system32\drivers
- To rename the damaged driver file, type the following command, and then press ENTER
ren
drivername
.sysdrivername
.bakdrivername
is the name of the damaged driver file. - To copy the driver from the Windows XP CD-ROM to the Drivers folder, type the following command, and then press ENTER
copy
cd-rom
:\i386drivername
cd-rom
is the drive letter for the drive that contains the Windows XP CD-ROM. - Type exit, press ENTER, and then restart the computer.
Missing or Damaged User32.dll File
Use Recovery Console to replace the corrupted or damaged User32.dll file, then, if needed, perform an in-place upgrade (also called a repair install) of Windows XP. To do so follow these steps:
- Insert the Windows XP CD-ROM into the CD-ROM or DVD-ROM drive, and then restart the computer. Select any options that are required to start the computer from the CD-ROM or DVD-ROM drive if you are prompted to do so.
- When the "Welcome to Setup" screen appears, press R to start Recovery Console.
- If your computer is configured for dual booting or multiple booting, select the relevant Windows XP installation.
- When you are prompted to do so, type the administrator password, and then press ENTER.
NOTE: In Windows XP Home Edition, the administrator password is\ blank by default. - At the command prompt, type the following command, and then press ENTER:
cd windows\system32
- To rename the User32.dll file, type the following command, and then press ENTER:
ren user32.dll user32.bak
- To expand a new copy of the User32.dll file from the Windows XP CD-ROM to the System32 folder, type the following command, and then press ENTER:
expand
cd-rom
:\i386\user32.dl_c:\windows
\system32cd-rom
is the drive letter for the drive that contains the Windows XP CD-ROM, andc:\windows
is the drive letter and folder in which Windows XP is installed. - Type exit, press ENTER, and then restart the computer.
If Windows XP still fails to start, you may need to perform an in-place upgrade (also called a repair install)
For additional information how to perform an in-place upgrade of Windows XP, click the article number below to view the article in the Microsoft Knowledge Base:
315341 How to Perform an In-Place Upgrade of Windows XP
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
MORE INFORMATION
While you are running Recovery Console, if you want information about a specific command, type help commandname
at the command prompt, and then press ENTER.
For additional information about using Recovery Console, click the article numbers below to view the articles in the Microsoft Knowledge Base:
314058 Description of the Windows XP Recovery Console
307654 HOW TO: Install and Use the Recovery Console for Windows XP
If you started the computer from Windows XP Setup boot disks and you receive either of the Stop errors that are described in the Symptoms section of this article, one or more of the six floppy disks might be defective. You can create a new set of Windows XP Setup boot disks.
For additional information about creating a set of Windows XP Setup boot disks, click the article number below to view the article in the Microsoft Knowledge Base:
310994 HOW TO: Obtain Windows XP Setup Boot Disks
Additional query words: blue screen c000026c c0000221 ntsetup
Keywords: kberrmsg kbsetup kbprb kbfaq KB315241