BOOTCFG

BOOTCFG command Configures, queries, or changes Boot.ini file settings.

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 the location of Windows Installation.

Syntax

bootcfg [Parameter_1] [Parameter_2]

Parameter_1

/Query Displays the current boot entries and their settings.
/Copy Makes a copy of an existing boot entry.
/D The description of the OS entry being made.
/ID Specifies the boot entry id to be copied in boot.ini
/Rebuild This switch will rebuild the Boot.ini file.
/Delete Deletes an existing boot entry from the BOOT.INI file.
/ID Specifies the boot entry id to be deleted from boot.ini
/Addsw Allows the user to add predefined switches.
/SO Display the name of each device driver while loading.
/NG Disables the Windows progress bar that appears before the logon prompt.
/MM Specifies the amount of RAM (in MB) the OS can use.
/BV OS to use standard VGA mode for the installed video driver.
/ID  Specifies the boot entry id to add
/Timeout Allows the user to change the Timeout value.
/Default Allows the user to change the Default boot entry.
/ID  Specifies the boot entry id to be made as default
/Rmsw Allows the user to remove predefined switches.
/SO Removes the /sos switch.
/NG Removes the /noguiboot switch.
/MM Removes the /maxmem switch.
/BV Removes the /basevideo switch.
/ID Specifies the boot entry id to Remove.

/Dbg1394

Allows the user to configure 1394 port for debugging.
/CH Specifies the channel. Valid values: 1 to 64
/ID Specifies the boot entry id to change.
/Debug Allows the user to specify the port and baud rate for remote debugging.
/PORT Specifies the COM port to connect for debugging
/BAUD Specifies the baudrate to be used
/ID Specifies the boot entry id to add
/EMS Allows the user to configure the /redirect switch for headless support.
/PORT Specifies the COM port to connect for redirection
/BAUD Specifies the baudrate to be used for redirection

 Parameter_2

/s   Computer Name or IP address of a remote computer. Default is local computer.
/u   Domain\User  Runs the command with the account permissions of the user. Default is the permissions of current logged on user.
/p   Password Password of the user account used with /u switch.

Note:
BOOT.INI is used for boot options on Windows XP and earlier operating systems.  Use the BCDEDIT command line tool to modify Windows Vista boot options.

Example…
If you want to rebuild the boot.ini file below is a command.
Bootcfg /Rebuild

Display Boot Loader settings
bootcfg /query

Output:
Boot Loader Settings
——————–
timeout: 30
default: multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
Boot Entries

————
Boot entry ID:   1
Friendly Name:   “Microsoft Windows XP Professional”
Path:            multi(0)disk(0)rdisk(0)partition(1)\WINDOWS