We recommend that you use the Recovery Console only after Safe mode and other startup options do not work. The Recovery Console is recommended only if you are an advanced user who can use basic commands to identify and locate problem drivers and files. Additionally, you must be an administrator to use the Recovery Console.
There are two ways to start the Recovery Console:
- If you cannot start your Windows and the Recovery Console has not been installed on your computer before, you can run the Recovery Console from your Setup CD.
Click "How to use the Recovery Console" for detailed information. - Alternative, you can install the Recovery Console on your computer to make it available in case that you cannot restart Windows. You can then select the Recovery Console option from the list of available operating systems on startup.
Click "How to install the Recovery Console" for detailed information.
How to install the Recovery Console
You can install the Recovery Console on your computer to make it available in case that you cannot restart Windows. You can then select the Recovery Console option from the list of available operating systems during startup. The Recovery Console is recommended to be installed on important servers and on the workstations of IT personnel. This article describes how to install the Recovery Console to the Windows XP-based computer. To install the Recovery Console, you must be logged on as an administrator.
Although you can run the Recovery Console by starting directly from the Windows XP CD, generally, it is more convenient to set it up as a startup option on your startup menu. To run the Recover Console directly from the CD, see the "
How to use the Recovery Console" section.
To
install the Recovery Console, follow these steps:
- Insert the Windows XP CD into the CD drive.
- Click Start, and then click Run.
- In the Open box, type
d:\i386\winnt32.exe /cmdcons
where d is the drive letter for the CD drive. For Microsoft Windows XP Professional x64 Edition, type d:\amd64\winnt32.exe /cmdcons where d is the drive letter for the CD drive.
- A Windows Setup Dialog Box appears. The Windows Setup
Dialog Box describes the Recovery Console option. To confirm the installation,
click Yes.
Collapse this imageExpand this image
- Restart the computer. The next time that you start your
computer, "Microsoft Windows Recovery Console" appears on the startup
menu.
Collapse this imageExpand this image
Alternatively, you can use a Universal Naming Convention
(UNC)-established connection to install the Recovery Console from a network
share point.
Note You may receive an error message that is similar the
following:
Setup cannot continue because the version of
Windows on your computer is newer than the version on the CD.
If this
problem occurs, click the following article number to view the article in the
Microsoft Knowledge Base:
898594
You receive an error message if you try to install the Recovery Console on a Microsoft Windows XP Service Pack 2-based computer
How to use the Recovery Console
You can enable and disable services, format drives, read and write data on a local drive (including drives that are formatted to use the NTFS file system), and perform many other administrative tasks. The Recovery Console is very useful if you have to repair your computer by copying a file from a disk or CD-ROM to your hard disk, or if you have to reconfigure a service that is preventing your computer from starting correctly.
If you cannot start your Windows, you can run the Recovery Console from the Windows XP startup disks or the Windows XP CD-ROM.
After Windows XP is installed on your computer, to start the computer and use the Recovery Console. The Windows XP startup disks or the Windows XP CD-ROM are required.
For more information about how to create Startup disks for
Windows XP (they are not included with Windows XP), click the following article
number 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 must configure the basic input/output system (BIOS) of the computer to start from your CD-ROM.
To run the Recovery Console from the Windows XP
startup disks or the Windows XP CD-ROM, follow these steps:
- Insert the Windows XP startup disk into the floppy disk drive, or insert the Windows XP CD-ROM into the CD drive, and then restart the computer.
Click to select any options that are required to start the computer from the CD drive if you are prompted. - When the "Welcome to Setup" screen appears, press R to
start the Recovery Console.
- If you have a dual-boot or multiple-boot computer, select
the installation that you must access from the Recovery Console.
- When you are prompted, type the Administrator password. If
the administrator password is blank, just press ENTER.
- At the command prompt, type the appropriate commands to
diagnose and repair your Windows XP installation.
For a list of
commands that are available in Recovery Console, type recovery
console commands or help at the command
prompt, and then press ENTER.
For information about a specific
command, type help
commandname at the command prompt, and
then press ENTER. - To exit the Recovery Console and restart the computer, type
exit at the command prompt, and then press
ENTER.
How to use the Recovery Console command prompt
When you use the Recovery Console, you are working at a special command prompt instead of the ordinary 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 local Administrator password.
When the Recovery Console starts, you can press F6 to install a third-party SCSI or RAID driver, in case that 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 several seconds to start. When the Recovery Console menu appears, a numbered list of the Windows installations on the computer appears. (Generally, only c:\Windows exists.) Press a number before you press ENTER, even when only one entry appears. If you press ENTER without selecting a number, the computer restarts and starts the process again.
Collapse this imageExpand this image
When you see the prompt for %SystemRoot% (generally C:\Windows), you can start to use the available commands for the Recovery Console.
Command actions
Collapse this imageExpand this image
The following list describes the available commands for the Recovery Console
Collapse this imageExpand this image
Recovery Console rules
Collapse this imageExpand this image
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:
- AllowAllPaths = FALSE prevents access to directories and subdirectories outside the
system installation that you selected when you entered the Recovery
Console.
- AllowRemovableMedia = FALSE prevents access to removable media as a target for copied
files.
- AllowWildCards = FALSE prevents wildcard support for commands such as copy and del.
- NoCopyPrompt = FALSE means that you are prompted by the Recovery Console for
confirmation when overwriting an existing file.
Collapse this imageExpand this image
How to delete the Recovery Console
Collapse this imageExpand this image
To delete the Recovery Console:
- Restart your computer, click Start, click My Computer, and then double-click the hard disk where you installed the
Recovery Console.
- On the Tools menu, click Folder Options, and then click the View tab.
- Click Show hidden files and folders, click
to clear the Hide protected operating system files check box,
and then click OK.
- At the root folder, delete the Cmdcons folder and the Cmldr file.
- At the root folder, right-click the Boot.ini file, and then click Properties.
- Click to clear the Read-only check box, and then click OK.
Warning: Modifying the Boot.ini file incorrectly may prevent your
computer from restarting. Make sure that you delete only the entry for the
Recovery Console. Also, change the attribute for the Boot.ini file back to a
read-only state after you finish 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
- Save the file and close it.
Collapse this imageExpand this image
How to install Recovery Console during an unattended installation
Collapse this imageExpand this image
To install the Recovery Console during the unattended
installation of Windows, you must use the [GuiRunOnce] section of the
unattend.txt file.
Command1="path\winnt32 /cmdcons /unattend"
For more information about how to use the Unattend.txt file, see
the
Deployment Planning Guide of the Windows 2000 Server
Resource Kit.
Collapse this imageExpand this image
You can use Group Policy to change the rules and expand the
power that you have in the Recovery Console.
For more information about how
to do this, click the following article number to view the article in the
Microsoft Knowledge Base:
310497
How to use Group Policies to add more power to the Recovery Console
For more information about Windows XP Recovery Console, click the following article number to view the article in the Microsoft Knowledge Base:
314058
Description of the Windows XP Recovery Console for advanced users