Microsoft KB Archive/313670

= How To Replace a Driver by Using Recovery Console in Windows 2000 =

Article ID: 313670

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Professional Edition

-



This article was previously published under Q313670



IN THIS TASK

 * SUMMARY
 * Requirements
 * Start Recovery Console
 * If Recovery Console Is Not Installed
 * If Recovery Console Is Installed
 * Extract the Driver Files from the Windows 2000 Installation CD-ROM
 * Replace the Driver Files by Using the COPY Command
 * Add Recover Console to an Existing Installation



SUMMARY
This step-by-step article describes how to use Recovery Console to replace a driver on a Windows 2000-based computer that you cannot start.

back to the top

Requirements
To replace a driver, you must have a copy of the uncorrupted driver files. You must also know in which folder the driver file is located.

NOTE: Only the Administrator account can obtain access to Recovery Console. To use Recovery Console on domain controllers, you need the DS Restore password. The DS Restore password was specified during the Active Directory Promotion Wizard.

back to the top

Start Recovery Console
To start Recovery Console, use one of the following methods.

If Recovery Console Is Not Installed

 * 1) Start your computer by using the Windows Setup floppy disks, or with the Windows CD-ROM.
 * 2) At the &quot;Welcome to Setup&quot; screen, press R to repair the installation, and then press C to start Recovery Console.
 * 3) Select the Windows installation that you want to repair, and then press ENTER.
 * 4) Type the Administrator password, and then press ENTER.

NOTE: Recovery Console uses the Administrator password that you configured when you installed Windows 2000. Changes that you make to the Administrator password after you install Windows 2000 do not apply to Recovery Console.

back to the top

If Recovery Console Is Installed

 * 1) Restart your computer.
 * 2) When you are prompted Select the operating system to start, select Microsoft Windows 2000 Recovery Console.

NOTE: If Recovery Console does not appear in the list, Recovery Console is not installed. Follow the steps in the previous section to start Recovery Console.
 * 1) Select the Windows installation that you want to repair, and then press ENTER.
 * 2) Type the Administrator password, and then press ENTER.

NOTE: Recovery Console uses the Administrator password that you configured when you installed Windows 2000. Changes that you make to the Administrator password after you install Windows 2000 do not apply to Recovery Console.

back to the top

Extract the Driver Files from the Windows 2000 Installation CD-ROM
Installation files are stored on the Windows 2000 installation CD-ROM in compressed folders that are known as cabinet (.cab) files. Driver files are stored in the Driver.cab file.

To use original driver files that are included on the Windows 2000 installation CD-ROM to replace damaged driver files:  Insert the Windows 2000 installation CD-ROM in the CD-ROM drive. At the command prompt in Recovery Console, type the following line, and then press ENTER:

expand \i386\driver.cab /f:  [ ]

In this command, replace  with the CD-ROM drive letter,   with the name of the file to expand, and   with the folder in which to copy the driver file. Typically, driver (.sys) files are stored in the %SystemRoot%\System32\Drivers folder.

For example, to replace the Atimpab.sys driver file, you might type:

expand d:\i386\driver.cab /f:atimpab.sys %systemroot%\System32\Drivers\

Note that in this command, you must use the /f switch because the Driver.cab cabinet file contains more than one file.

back to the top

Replace the Driver Files by Using the COPY Command
If the driver files that you want are not located in a cabinet (.cab) file, you can use the Recovery Console copy command to overwrite the corrupted files. To do this:  At the command prompt, type the following line, and then press ENTER:

copy [ ]  [ ]

In this command, replace  with the path for the source replacement file,   with the name of the replacement file,   with the path for the driver file that you want to replace, and   with the name of the driver file that you are replacing.

For example, to replace the Atimpab.sys file with a known good copy from a floppy disk drive, you might type:

copy a:\atimpab.sys c:\winnt\system32\drivers\atimpab.sys

Note that the copy command in Recovery Console does not support wildcard characters. Therefore, you can copy only one file at a time. If you must replace more than one file, use multiple copy commands.

 When you are prompted to confirm that you want to overwrite the existing file, press Y, and then press ENTER.

back to the top

Add Recovery Console to an Existing Installation
You can add Recovery Console to an existing installation of Windows 2000 by using the winnt32.exe /cmdcons command. Recovery Console requires approximately 7 megabytes (MB) of space in the system partition on the hard disk.

NOTE: If you are using software mirroring, click the following article number to view the article in the Microsoft Knowledge Base:

229077 Mirroring Prevents Pre-Installing the Recovery Console

For additional information about how to install Recovery Console, click the article number below to view the article in the Microsoft Knowledge Base:

222478 Creating a Template to Run Recovery Console Using a Remote Install Server

back to the top

Keywords: kbhowtomaster KB313670

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.