This guide is about Recovery Console, the command-line tool available for the following Windows versions: Windows XP, Windows 2000, Windows Server 2003.

Contents

What is Recovery Console

Recovery Console is a command-line tool available only for these versions of Windows: XP, 2000 and Server 2003.

Recovery Console on Windows XP

The tool loads with this message:

Microsoft Windows(R) Recovery Console

The Recovery Console provides system repair and recovery functionality. 
Type EXIT to exit the Recovery Console and restart the computer.

1: C:\WINDOWS 

Which Windows Installation would you like to log on to ?
(To cancel, press ENTER)

In the above example, Windows is installed on C:\. You need to type 1 and press Enter to load the Windows available on the C:\ drive.

The command-line tool isn’t available for Windows Vista, Windows 7, Windows 8 or Windows 8.1. It’s only available for Windows XP and Server 2003, these two operating systems being the last versions of Windows to have it installed.

Windows Vista, 7 and 8 replaced Recovery Console with System Recovery Options, a collection of recovery tools.

You can perform the following with Recovery Console:

  • Manipulate system files (copy, rename, replace etc.)
  • Enable or disable startup services (services that run automatically at boot)
  • Repair the MBR (related: Fix the MBR guide)
  • Create and format partitions
  • Run the chkdsk command

You can only use the Recovery Console as an Administrator of the system or as any user part of the Administrator group.

You can access the tool from the original installation CD or from the boot menu if you already installed it on your computer. Follow these instructions on how to install it and make it available at boot without a CD.

Access Recovery Console

To access the Recovery Console, you have the following options:

  • Use the original Windows XP installation CD, if you still have it
  • If you installed Recovery Console on your system, select it from the Startup Options menu
  • Use Easy Recovery Essentials to access Command Line and run Recovery Console-specific commands

If you have the installation CD

If you have the original Windows XP installation CD, follow these steps to access Recovery Console:

  1. Boot your computer
  2. Insert the Windows XP CD
  3. Press any key at the Press any key to boot from CD message
  4. At the Welcome to Setup screen, press R:
    To repair a Windows XP  installation using Recovery Console, press R.
    Windows XP Press R for Recovery Console

    Windows XP Press R for Recovery Console

  5. The Windows XP CD will now load Recovery Console:
    Microsoft Windows(R) Recovery Console
    
    The Recovery Console provides system repair and recovery functionality. 
    Type EXIT to exit the Recovery Console and restart the computer.
    
    1: C:\WINDOWS 
    
    Which Windows Installation would you like to log on to ?
    (To cancel, press ENTER)
  6. Type 1 and press Enter
  7. Recovery Console is now loaded

If you installed Recovery Console

If you haven’t installed the tool, follow these instructions.

If you already installed Recovery Console on your computer, you may access it at the Startup Options menu. To do so, follow these steps:

  1. Start your computer
  2. Wait for your computer to boot into the Boot Options menu
  3. At the Please select the operating system to start: message, select Microsoft Windows XP Recovery Console

    Recovery Console Installed At Boot

  4. Press Enter

If you use Easy Recovery Essentials

If you use Easy Recovery Essentials, our repair and recovery disk, you can access Command Line and run the commands you need:

  1. Download Easy Recovery Essentials
  2. Burn the ISO Image. Follow our instructions on how to burn a bootable ISO image. If you’d like to have a recovery USB instead, follow our instructions on how to make a recovery USB.
  3. Boot Easy Recovery Essentials from the CD, DVD or USB
  4. Select Launch Command Line

    Easy Recovery Essentials screenshot

Install Recovery Console

You can install Recovery Console on your system.

Before you do, read these notes:

  • You need to have the Windows XP installation CD
  • You need to use the Windows XP installation CD, the CD that you used to install Windows XP on your computer.

    If you have Windows XP SP1 on the CD, you need to have Windows XP SP1 installed and not SP2 installed.

    If you do have SP2 installed, while your original CD is with SP1, read KB 898594.

To install Recovery Console, follow these steps:

  1. Boot into Windows XP
  2. Insert the Windows XP CD in the disk drive
  3. Go to Start
  4. Go to Run
  5. Type the following command, but replace e: with your computer’s optical drive letter:
    e:\i386\winnt32.exe /cmdcons
  6. Press Enter
  7. Click Yes at the Windows Setup warning message

    Warning Message When Installing Recovery Console

  8. Wait for the process to finish
  9. Click OK at the The Windows Recovery Console has been successfully installed message

    Recovery Console Installed

  10. After Recovery Console is installed, you can restart your computer and see it at the boot options menu:

    Recovery Console Installed At Boot

Delete Recovery Console

If you installed Recovery Console, you can also delete it from the boot options menu.

To delete it, follow these steps:

  1. Restart your Windows XP system
  2. Click Start
  3. Click My Computer
  4. Double-click on C:\ or the drive where Windows XP is installed
  5. Click Tools, then Folder Options, and then click the View tab
  6. Click Show hidden files and folders and make sure Hide protected operating system files is unchecked
  7. Click OK
  8. Delete the Cmdcons folder and the Cmldr file from C:\
  9. Right-click on the Boot.ini file (warning: do not delete this file) and click Properties
  10. Make sure the Read-only option is unchecked
  11. Click OK
  12. Open the Boot.ini file with Notepad
  13. Remove the Recovery Console line from the file. This line looks like this:
    C:\cmdcons\bootsect.dat="Microsoft Windows Recovery Console" /cmdcons
  14. Save the Boot.ini file

Commands

The following commands are available to use in Recovery Console:

  • attrib – changes the attributes of a folder
  • batch – will run commands that are specified in a text file
  • bootcfg – this command is for boot configuration and recovery. For more information, see the bootcfg guide
  • cd – will change to a different folder
  • chdir – it’s similar to cd above, it will change to a different folder
  • chkdsk – will check the specified drive and repair it, if needed. For more information, see the chkdsk guide
  • cls – clear the command screen
  • copy – copies a file to a specified destination
  • del – deletes a file
  • delete – similar to del above, deletes a file
  • dir – displays a list of files and folders from the current folder
  • disable – disables a specified Windows service
  • diskpart – manages partitions on the hard disk. For more information, see the diskpart guide
  • enable – enables a specified Windows service. To disable a service, use disable
  • exit – exit Recovery Console
  • expand – expands a file
  • fixboot – writes a new boot sector on the partition
  • fixmbr – repair the MBR of the boot partition. For more information, see the Fix MBR guide
  • format – formats a specified drive
  • listsvc – lists all available services and drivers
  • logon – lists all detected Windows installations
  • map – list drive letters, types, partition sizes and mappings
  • md – create a new folder
  • mkdir – similar to md, creates a new folder
  • more – displays a text file to the screen
  • rd – delete a folder
  • rmdir – similar to rd, deletes a folder
  • ren – rename a file
  • rename – similar to ren, renames a file
  • set – displays and modifies environment options
  • systemroot – set the current folder to the %SystemRoot% folder of the current Windows installation
  • type – displays a text file

Troubleshooting

Password for Recovery Console

Recovery Console will ask you for the Administrator password.

If you usually log into Windows XP without a password, simply press Enter without typing any password to check if Recovery Console would accept this.

If this method doesn’t work, you’ll need to know the Administrator password.

Another alternative is to boot into Windows XP and open the Registry Editor to set the DWORD SecurityLevel to 1. To do so, follow these steps:

  1. Boot into Windows XP
  2. Click Start
  3. Click Run
  4. Type regedit
  5. Click OK or press Enter
  6. Navigate to this key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Setup\RecoveryConsole
  7. Set the value of DWORD SecurityLevel to 1
  8. Exit the Registry Editor
  9. Reboot your Windows XP system

Recovery Console in Windows Vista or 7

Recovery Console is not available on Windows Vista or Windows 7 systems. Windows Vista, 7 and 8 systems are using the System Recovery Options set of tools instead of Recovery Console that you can use to repair or restore your computer.

To boot into System Recovery Options on a Windows Vista, follow these steps:

  1. Boot from the installation CD/DVD
  2. At the “Press any key to boot from CD or DVD…” message, press any key to boot from the DVD
  3. Click Repair your computer

    Install Windows Vista

  4. Choose the operating system from the list
  5. System Recovery Options is now available

    System Recovery Options on Windows Vista

To boot into System Recovery Options on a Windows 7, follow these steps:

  1. Boot from the Windows 7 installation DVD
  2. At the “Press any key to boot from CD or DVD…” message, press any key to boot from the DVD
  3. At the Install Windows screen, select a language, time and keyboard
  4. Click Next
  5. Click Repair your computer or press R

    Install Windows 7

  6. System Recovery Options is now available

    System Recovery Options on Windows 7

More Information

Support Links

Applicable Systems

This Windows-related knowledgebase article applies to the following operating systems:

  • Windows XP (all editions)
  • Windows Server 2003 (all editions)

Propose an edit