Bootcfg (Recovery Console)

How to use the Bootcfg command in the Windows XP Recovery Console

The bootcfg command is a Recovery Console command used to build or modify the boot.ini file, a hidden file that is used to identify in what folder, on which partition, and on which hard drive Windows is located.

A bootcfg command is also available from the Command Prompt.

Bootcfg Command Syntax

bootcfg /list

/list = This option will list every entry in the boot list in the boot.ini file.

bootcfg /scan

/scan = Using this option will instruct bootcfg to scan all drives for installations of Windows and then display the results.

bootcfg /rebuild

/rebuild = This option will step you through the process of rebuilding the boot.ini file.

bootcfg /default

/default = the /default switch sets the default boot entry in the boot.ini file.

bootcfg /add

/add = This option allows for the manual entry of a Windows installation in the boot.ini boot list.

Bootcfg Command Examples

bootcfg /rebuild

In the above example, the bootcfg command scans all drives for any Windows installations, displays the results, and steps you through building the boot.ini file.

Bootcfg Command Availability

The bootcfg command is available from within the Recovery Console in Windows 2000 and Windows XP.

Bootcfg Related Commands

The fixboot, fixmbr, and diskpart commands are often used with the bootcfg command.