Guide Creating Custom Boot Menu In Windows Xp

Status
Not open for further replies.
hi guys,

this tutorial i found online is something worth giving a try. creating a customised boot menu for windows xp, explains how u can create ur own boot menu for xp installed. please backup all the data that u may have b4 trying this out......

Instructions.
Go to Start->Run-> type cmd
Type cd c:\
Type attrib boot.ini
Now you should see A SHR C:\boot.ini
Type attrib -S -H -R
Type type boot.ini to see your current boot.ini
Type edit boot.ini to edit your boot.ini
Once done editing, type attrib +S +H +R to return the boot.ini file attributes to normal.
reboot and now you have a custom boot.ini!
My custom boot.ini
[boot loader]
timeout=24
default=multi(0)disk(0)rdisk(0)partition(1)WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)WINDOWS="XP Pro Normal" /fastdetect /noexecute=optin /numproc=2
multi(0)disk(0)rdisk(0)partition(1)WINDOWS="XP Pro SMode" /safeboot:minimal /sos /bootlog /noguiboot
multi(0)disk(0)rdisk(0)partition(1)WINDOWS="XP Pro SMode with Net" /safeboot:network /sos /bootlog /noguiboot
multi(0)disk(0)rdisk(0)partition(1)WINDOWS="XP Pro SMode with CMD" /safeboot:minimal(alternateshell) /sos /bootlog /noguiboot
multi(0)disk(0)rdisk(0)partition(1)WINDOWS="XP Pro Debug" /debug /sos /basevideo /noguiboot /bootlog
C:CMDCONSBOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons
Available switch options for the Boot.ini file
/basevideo
/baudrate=number
/crashdebug
/debug
/debugport=comnumber
/maxmem=number
/noguiboot
/nodebug
/numproc=number
/pcilock
/fastdetect:comnumber
/sos
/PAE
/HAL=filename
/kernel=filename
/bootlog
/burnmemory=number
/3GB
/safeboot:
/NoSerialMice
/userva
/redirect
/channel
Typically, the Boot.ini file contains the following data:

[boot loader]
timeout=30
default=scsi(0)disk(0)rdisk(0)partition(1)winnt
[operating systems]
scsi(0)disk(0)rdisk(0)partition(1)winnt = "Windows NT" /NODEBUG C: = "Previous Operating System on C:"
The following list describes the meaning of the data in the Boot.ini file:

The “timeout†variable specifies how long Windows waits before choosing the default operating system.
The “default†variable specifies the default operating system.
The term “scsi(0)†means that the primary controller (that is frequently the only controller) is responsible for the device. If there are two SCSI controllers, and the disk is associated with the second controller, the controller is named “scsi(1)â€.
If the system uses IDE, enhanced IDE (EIDE), or Enhanced Small Device Interface (ESDI) drives, or if the system uses a SCSI adapter that does not have a built-in BIOS, replace “scsi†with “multiâ€.

The term “disk(0)†refers to the SCSI logical unit (LUN) to use. This may be a separate disk, but most SCSI setups have only one LUN for each SCSI ID.
The term “rdisk(0)†refers to physical disk 1.
The term “partition(1)†is the partition on the first drive in the computer. If there are two partitions, partition C is partition(1) and partition D is partition(2).
A multi-boot parameter calls for checking the Winnt folder to start from a specified SCSI controller’s disk and partition.
“/NODEBUG†specifies that no debugging information is being monitored. Debugging information is useful only for developers.
You can add the /SOS option to display driver names while the drivers are being loaded. By default, the OS Loader screen only shows progress dots.
“Previous Operating System on C:\†implies that the “previous operating system†is MS-DOS, because “C:\†is an MS-DOS path.
Boot.ini Switches
You can add many different switches to the Boot.ini file that will modify the way that Microsoft Windows starts.

/basevideo
The /basevideo switch forces the system into standard 640×480 16-color VGA mode by using a video driver that is compatible with any video adapter. This switch permits the system to load if you select the wrong video resolution or the wrong refresh rate. Use this switch in conjunction with the /sos switch. If you install a new video driver, and it does not work correctly, you can select the Windows 2000 entry with this switch to start the computer and to change to a different driver.
/baudrate=number
This switch sets the baud rate of the debug port that is used for kernel debugging. The default baud rate is 9600 kilobits per second (Kbps) if a modem is attached. The default baud rate is 19200 Kbps for a null-modem cable. 9,600 is the normal rate for remote debugging over a modem. For example, type /baudrate=9600 to specify a baud rate of 9600. If this switch is in the Boot.ini file, the /debug switch is automatically enabled.
/crashdebug
This switch turns on the COM port for debugging when Windows 2000 crashes. /crashdebug is useful if you experience random kernel errors. With this switch, you can use the COM port for normal operations while Windows is running. If Windows crashes, the switch converts the port to a debug port. (This action turns on remote debugging.)
/debug
This switch turns on the kernel debugger when you start Windows. The switch can be activated at any time by a host debugger that is connected to the computer, if you want to turn on live remote debugging of a Windows system through the COM ports. Unlike the /crashdebug switch, /debug uses the COM port whether you are debugging or not. Use this switch when you are debugging problems that are reproducible.
/debugport=comnumber
This switch specifies the communications port to use for the debug port, where number is the communications port, such as COM1, that you want to use. For example, type /debugport=com1, where the com port is COM1. By default, /debugport uses COM2 if it exists. Otherwise, the switch uses COM1. If you include this switch in the Boot.ini file, the /debug switch becomes active.
/maxmem=number
This switch specifies the maximum amount of RAM that Windows can use. Do not make this setting less than 12. Use this parameter to confirm whether a memory chip is faulty.
/nodebug
This switch turns off debugging. This switch can cause a Stop error if a program has a debug hardcoded breakpoint in its software.
/numproc=number
This switch sets the number of processors that Windows will run at startup. With this switch, you can force a multiprocessor system to use only the quantity of processors (number) that you specify. This switch can help you troubleshoot performance problems and defective CPUs.
/pcilock
For x86-based systems, this switch stops the operating system from dynamically assigning hardware input, hardware output, and interrupt request resources to Peripheral Connect Interface (PCI) devices. With this switch, the BIOS configures the devices.
NOTE: In earlier versions of Windows, including Windows NT 4.0, this switch was named /noserialmice.
/fastdetect:comnumber
This switch turns off serial and bus mouse detection in the Ntdetect.com file for the specified port. Use this switch if you have a component other than a mouse that is attached to a serial port during the startup process. For example, type /fastdetect:comnumber, where number is the number of the serial port. Ports may be separated with commas to turn off more than one port. If you use /fastdetect, and you do not specify a communications port, serial mouse detection is turned off on all communications ports.

This switch is also used with uninterruptible power supplies (UPS), such as those supplies from American Power Conversion brand (APC), that connect to a serial port. If this switch is not available when Windows starts, and Windows tries to detect a mouse on this port, the UPS incorrectly starts its shutdown mode. NOTE: In earlier versions of Windows, including Windows NT 4.0, this switch was named /noserialmice.

/sos
The /sos switch displays the device driver names while they are being loaded. By default, the Windows Loader screen only echoes progress dots. Use this switch with the /basevideo switch to determine the driver that is triggering a failure.
/PAE
Use the /PAE switch with the corresponding entry in Boot.ini to permit a computer that supports physical address extension (PAE) mode to start normally. In Safe Mode, the computer starts by using normal kernels, even if the /PAE switch is specified.
/HAL=filename
With this switch, you can define the actual hardware abstraction layer (HAL) that is loaded at startup. For example, type /HAL=halmps.dll to load the Halmps.dll in the System32 folder. This switch is useful to try out a different HAL before you rename the file to Hal.dll. This switch is also useful when you want to try to switch between starting in multiprocessor mode and starting in single processor mode. To do this, use this switch with the /kernel switch.
/kernel=filename
With this switch, you can define the actual kernel that is loaded at startup. For example, type /kernel=ntkrnlmp.exe to load the Ntkrnlmp.exe file in the System32 folder. With this switch, you can switch between a debug-enabled kernel that is full of debugging code and a regular kernel.
/bootlog
This switch turns on boot logging to a file that is named systemroot\Ntbtlog.txt. For more information about boot logging, see Windows Help.
/burnmemory=number
This switch specifies the amount of memory, in megabytes, that Windows cannot use. Use this parameter to confirm a performance problem or other problems that are related to RAM depletion. For example, type /burnmemory=128 to reduce the physical memory that is available to Windows by 128 MB.
/3GB
With this switch, user mode programs can access 3 GB of memory instead of the usual 2 GB that Windows allocates to user mode programs. The switch moves the starting point of kernel memory to 3 GB. This switch is used only with Windows 2000 Server Enterprise Edition. Some configurations of Microsoft Exchange Server 2000 and Microsoft Windows 2000 Advanced Server may require this switch.
/safeboot:
This switch causes Windows to start in Safe Mode. This switch uses the following parameters:

/safeboot:minimal/sos/bootlog/noguiboot
This switch starts Windows in Safe Mode.
/safeboot:network/sos/bootlog/noguiboot
This switch starts Windows in Safe Mode with networking.
/safeboot:minimal(alternateshell)/sos/bootlog/noguiboot
This switch starts Windows in Safe Mode with a command prompt.
/safeboot:dsrepair/sos
On domain controllers only, this switch starts Windows in Directory Services Restore Mode.
NOTE: The /sos,/bootlog, and/noguiboot switches are not required with any one of these settings, but the switches can help with troubleshooting. These switches are included if you press F8 and then select one of the modes.

/userva
Use this switch to customize the amount of memory that is allocated to processes when you use the /3GB switch. This switch permits more page table entry (PTE) kernel memory but still maintains almost 3 GB of process memory space.

NOTE: Microsoft Product Support Services strongly recommends using a range of memory for the /USERVA switch that lies within the range of 2900-3030. This range is wide enough to provide a large enough pool of system page table entries for all currently observed issues. Usually a setting of /userva=2900 will provide close to the maximum available number of system page table entries possible.

/redirect
Use this switch to turn on Emergency Management Services (EMS) on a Windows Server 2003, Enterprise Edition-based computer. For additional information about EMS, search on “Emergency Management Services†in Windows Help and Support.
NOTE: Be careful when editing your boot.ini file!

If you can’t boot windows after you edit the boot.ini
Start the computer from the Windows XP CD, start the Recovery Console, and then use the Bootcfg.exe tool to rebuild the Boot.ini file. To do this, follow these steps:

Configure the computer to start from the CD-ROM or DVD-ROM drive.
Insert the Windows XP CD-ROM into your CD-ROM or DVD-ROM drive, and then restart your computer.
When you receive the “Press any key to boot from CD†message, press a key to start your computer from the Windows XP CD-ROM.
When you receive the “Welcome to Setup†message, press R to start the Recovery Console.
If you have a dual-boot or multiple-boot computer, select the installation that you have to use from the Recovery Console.
When you are prompted, type the administrator password, and then press ENTER.
At the command prompt, type bootcfg /list, and then press ENTER. The entries in your current Boot.ini file appear on the screen.
At the command prompt, type bootcfg /rebuild, and then press ENTER. This command scans the hard disks of the computer for Windows XP, Microsoft Windows 2000, or Microsoft Windows NT installations, and then displays the results. Follow the instructions that appear on the screen to add the Windows installations to the Boot.ini file. For example, follow these steps to add a Windows XP installation to the Boot.ini file:
When you receive a message that is similar to the following message, press Y: Total Identified Windows Installs: 1
[1] C:Windows
Add installation to boot list? (Yes/No/All)
You receive a message that is similar to the following message: Enter Load Identifier
This is the name of the operating system. When you receive this message, type the name of your operating system, and then press ENTER. This is either Microsoft Windows XP Professional or Microsoft Windows XP Home Edition.

You receive a message that is similar to the following: Enter OS Load options
When you receive this message, type /fastdetect, and then press ENTER.
NOTE: The instructions that appear on your screen may be different, depending on the configuration of your computer.

Type exit, and then press ENTER to quit Recovery Console. Your computer restarts, and the updated boot list appears when you receive the “Please select the operating system to start†message.
How to Hide Boot.ini Entries from Displaying
You can hide additional installations of Windows from being displayed in the boot menu, but still gain access to them when you need to.

To hide menu items from the Boot.ini file, so they will not be accessible:

Remove the read-only attribute from the Boot.ini file.
Use an editor to edit the Boot.ini file.
Place the following entry above the lines you want hidden: [any text].
This will hide all entries below the [any text] heading.
To restore the entry and make it accessible again, remove the [any text] line.
Save the file and reapply the read-only attribute.
Restart your computer.
For example, the 3 bottom entries below will not be displayed or accessible the next time the system is restarted. Simply remove [any text] to gain access to this installation.

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)NT351SVR
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)NT351SVR="NT Server 3.51"
multi(0)disk(0)rdisk(0)partition(1)NT351SVR="NT Server 3.51 [VGA mode]" /basevideo /sos
[any text]
multi(0)disk(0)rdisk(0)partition(1)WINNT35="NT Wks 3.51"
multi(0)disk(0)rdisk(0)partition(1)WINNT35="NT Wks 3.51 [VGA mode]" /basevideo /sos
C:="MS-DOS"
Install the Recovery Console as a boot option
With Windows running, insert the Setup CD into your CD-ROM drive.
CLick Start and select Run.
Type the following where D: is the CD-ROM drive letter:
D:\i386\winnt32.exe /cmdcons

To run the Recovery Console, restart your computer and select the Recovery Console option from the list of available operating systems.
You must be logged on as an administrator or a member of the Administrators group in order to complete this procedure. If your computer is connected to a network, network policy settings may also prevent you from completing this procedure.
To see the commands available on the Recovery Console, type help at the at the console prompt.
If your computer will not start, you can run the Recovery Console from the Setup CD. See Related Topics for information on running the Recovery Console when your computer will not start.

Configure automatic administrator logon for Recovery Console
To set an automatic administrator logon for the Recovery Console, complete the following steps while you are logged on with administrative credentials:

Click Start, and then click Control Panel.
Click Switch to Classic View in the right pane, double-click Administrative Tools, and then double-click Local Security Policy.
Expand Security Settings, expand Local Policies, and then click Security Options.
Double-click the Recovery Console: Allow automatic administrative logon policy, and then set it to Enable.
The policy is effective immediately. Make sure that you reopen the Local Security Policy snap-in to make sure that the effective setting for the policy is “Enabled.â€
The next time that you start to Recovery Console, you are not prompted for a password.

After you complete this procedure, the SecurityLevel DWORD registry value data is set to 1 in the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole

Using the BOOTCFG command
Description
This command line tool can be used to configure, query, change or delete the boot entry settings in the BOOT.INI file.

BOOTCFG /parameter [arguments] -

Parameter List
/Copy Makes a copy of an existing boot entry [operating systems] section for which you can add OS options to.
/Delete Deletes an existing boot entry in the [operating systems] section of the BOOT.INI file. You must specify the entry# to delete.
/Query Displays the current boot entries and their settings.
/Raw Allows the user to specify any switch options to be added for a specified boot entry.
/Timeout Allows the user to change the Timeout value.
/Default Allows the user to change the Default boot entry.
/EMS Allows the user to configure the /redirect switch for headless support for a boot entry.
/Debug Allows the user to specify the port and baudrate for remote debugging for a specified boot entry.
/Addsw Allows the user to add predefined switches for a specific boot entry.
/Rmsw Allows the user to remove predefined switches for a specific boot entry.
/Dbg1394 Allows the user to configure 1394 port debugging for a specified boot entry.
/? Displays this help/usage.
Examples
BOOTCFG /Copy /?
BOOTCFG /Delete /?
BOOTCFG /Query /?
BOOTCFG /Raw /?
BOOTCFG /Timeout /?
BOOTCFG /EMS /?
BOOTCFG /Debug /?
BOOTCFG /Addsw /?
BOOTCFG /Rmsw /?
BOOTCFG /Dbg1394 /?
BOOTCFG /Default /?
BOOTCFG /?
BOOTCFG parameters
/s Computer Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/u Domain\\User Runs the command with the account permissions of the user specified by User or Domain\\User. The default is the permissions of the current logged on user on the computer issuing the command.
/p Password Specifies the password of the user account that is specified in the /u parameter.
/id OSEntryLineNum Specifies the operating system entry line number in the [operating systems] section of the Boot.ini file to which the operating system load options are added. The first line after the [operating systems] section header is 1.
BOOTCFG addsw
Adds operating system load options for a specified operating system entry.

BOOTCFG /addsw [/s Computer [/u Domain\\User /p Password]] [/mm MaximumRAM] [/bv] [/so] [/ng] /id OSEntryLineNum

Parameters
/mm MaximumRAM Adds the /maxmem switch to the specified OSEntryLineNum and sets the maximum amount of RAM that the operating system can use.
/bv Adds the /basevideo switch to the specified OSEntryLineNum, directing the operating system to use standard VGA mode for the installed video driver.
/so Adds the /sos switch to the specified OSEntryLineNum, directing the operating system to display device driver names while they are being loaded.
/ng Adds the /noguiboot switch to the specified OSEntryLineNum, disabling the Windows XP Professional progress bar that appears before the CTRL+ALT+DEL logon prompt.
Examples
BOOTCFG /addsw /mm 64 /id 2
BOOTCFG /addsw /so /id 3
BOOTCFG /addsw /so /ng /s srvmain /u hiropln /id 2
BOOTCFG /addsw /ng /id 2
BOOTCFG /addsw /mm 96 /ng /s srvmain /u maindomhiropln /p p@ssW23 /id 2
BOOTCFG copy
Makes another operating system instance copy, for which switches can be added.

Syntax
BOOTCFG /copy [/s Computer [/u Domain\\User /p Password]] [/d Description] [/id OSEntryLineNum]

Parameters
/d Description Specifies the description for the new operating system entry.
Examples
BOOTCFG /copy /d "ABC Server" /id 1
BOOTCFG /copy /s srvmain /u maindomhiropln /p p@ssW23 /d "Windows XP" /id 2
BOOTCFG /copy /u hiropln /p p@ssW23 /d "AB Ver 1.001" /id 2
BOOTCFG dbg1394
Configures 1394 port debugging for a specified operating system entry.

Syntax
BOOTCFG /dbg1394 {ON|OFF|EDIT} [/s Computer [/u Domain\\User /p Password]] [/ch channel] /id OSEntryLineNum

Parameters
ON|OFF|EDIT Specifies the value for 1394 port debugging. Value Description
ON
Enables remote debugging support by adding the /dbg1394 switch to the specified OSEntryLineNum.

OFF
Disables remote debugging support by removing the /dbg1394 switch from the specified OSEntryLineNum.

EDIT
Allows changes to port and baud rate settings by changing the channel values associated with the /dbg1394 switch for the specified OSEntryLineNum.

/ch channel Specifies the channel to use for debugging. Valid values are integers between 1 and 64. Do not use the /ch channel parameter if 1394 port debugging is being disabled.
Examples
BOOTCFG /dbg1394 /id 2
BOOTCFG /dbg1394 on /ch 1 /id 3
BOOTCFG /dbg1394 edit /ch 8 /id 2
BOOTCFG /s srvmain /u maindomhiropln /p p@ssW23 /dbg1394 off /id 2
BOOTCFG debug
Adds or changes the debug settings for a specified operating system entry.

Syntax
BOOTCFG /debug {ON|OFF|EDIT} [/s Computer [/u Domain\\User /p Password]] [/port {COM1|COM2|COM3|COM4}] [/baud {9600|19200|38400|57600|115200}] [/id OSEntryLineNum]

Parameters
ON|OFF|EDIT Specifies the value for debugging. Value Description
ON Enables remote debugging support by adding the /debug switch to the specified OSEntryLineNum.
OFF Disables remote debugging support by removing the /debug switch from the specified OSEntryLineNum.
EDIT Allows changes to port and baud rate settings by changing the values associated with the /debug switch for the specified OSEntryLineNum.
/port {COM1|COM2|COM3|COM4} Specifies the COM port to be used for debugging. Do not use the /port parameter if debugging is being disabled.
/baud {9600|19200|38400|57600|115200} Specifies the baud rate to be used for debugging. Do not use the /baud parameter if debugging is being disabled.
NOTE: If 1394 port debugging is required, use BOOTCFG /dbg1394.

Examples
BOOTCFG /debug on /port com1 /id 2
BOOTCFG /debug edit /port com2 /baud 19200 /id 2
BOOTCFG /s srvmain /u maindomhiropln /p p@ssW23 /debug off /id 2
BOOTCFG default
Specifies the operating system entry to designate as the default.

Syntax
BOOTCFG /default [/s Computer [/u Domain\\User /p Password]] [/id OSEntryLineNum]

Examples
BOOTCFG /default /id 2
BOOTCFG /default /s srvmain /u maindomhiropln /p p@ssW23 /id 2
BOOTCFG delete
Deletes an operating system entry in the [operating systems] section of the Boot.ini file.

Syntax
BOOTCFG /delete [/s Computer [/u Domain\\User /p Password]] [/id OSEntryLineNum]

Examples
BOOTCFG /delete /id 1
BOOTCFG /delete /s srvmain /u maindomhiropln /p p@ssW23 /id 3
BOOTCFG ems
Enables the user to add or change the settings for redirection of the EMS console to a remote computer. By enabling EMS, you add a “redirect=Port#†line to the [boot loader] section of the Boot.ini file and a /redirect switch to the specified operating system entry line. The EMS feature is enabled only on servers.

Syntax
BOOTCFG /ems {ON|OFF|EDIT} [/s Computer [/u Domain\\User /p Password]] [/port {COM1|COM2|COM3|COM4|BIOSSET}] [/baud {9600|19200|38400|57600|115200}] [/id OSEntryLineNum]

Parameters
ON|OFF|EDIT Specifies the value for EMS redirection. Value Description
ON Enables remote output for the specified OSEntryLineNum. Adds a /redirect switch to the specified OSEntryLineNum and a redirect=comX setting to the [boot loader] section. The value of comX is set by the /port parameter.
OFF Disables output to a remote computer. Removes the /redirect switch from the specified OSEntryLineNum and the redirect=comX setting from the [boot loader] section.
EDIT Allows changes to port settings by changing the redirect=comX setting in the [boot loader] section. The value of comX is reset to the value specified by the /port parameter.

/port {COM1|COM2|COM3|COM4|BIOSSET} Specifies the COM port to be used for redirection. BIOSSET directs EMS to get the BIOS settings to determine which port should be used for redirection. Do not use the /port parameter if remotely administered output is being disabled.
/baud {9600|19200|38400|57600|115200} Specifies the baud rate to be used for redirection. Do not use the /baud parameter if remotely administered output is being disabled.
NOTE: For more information on the Emergency Management Services (EMS), see Help and Support Center.

Examples
BOOTCFG /ems on /port com1 /baud 19200 /id 2
BOOTCFG /ems on /port biosset /id 3
BOOTCFG /s srvmain /ems off /id 2
BOOTCFG /ems edit /port com2 /baud 115200
BOOTCFG /s srvmain /u maindomhiropln /p p@ssW23 /ems off /id 2
BOOTCFG query
Queries and displays the [boot loader] and [operating systems] section entries from Boot.ini.

Syntax
BOOTCFG /query [/s Computer [/u Domain\\User /p Password]]

NOTE: The following is a sample of 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
OS Load Options: /fastdetect /debug /debugport=com1:
The Boot Loader Settings portion of the BOOTCFG query output displays each entry in the [boot loader] section of Boot.ini.
The Boot Entries portion of the BOOTCFG query output displays the following detail for each operating system entry in the [operating systems] section of Boot.ini: Boot entry ID, Friendly Name, Path, and OS Load Options.

Examples
BOOTCFG /query
BOOTCFG /query /s srvmain /u maindomhiropln /p p@ssW23
BOOTCFG /query /u hiropln /p p@ssW23
BOOTCFG raw
Adds operating system load options specified as a string to an operating system entry in the [operating systems] section of the Boot.ini file.

Syntax
BOOTCFG [/s Computer [/u Domain\\User /p Password]] /raw OSLoadOptionsString [/id OSEntryLineNum]

NOTE: Bootcfg raw is used to add text to the end of an operating system entry, overwriting any existing operating system entry options. This text should contain valid OS Load Options such as /debug, /fastdetect, /nodebug, /baudrate, /crashdebug, and /sos. For example, the following command adds “/debug /fastdetect†to the end of the first operating system entry, replacing any previous operating system entry options:
BOOTCFG /raw “/debug /fastdetect†/id 1

Examples
BOOTCFG /raw "/debug /sos" /id 2
BOOTCFG /raw /s srvmain /u maindomhiropln /p p@ssW23 "/crashdebug " /id 2
BOOTCFG rmsw
Removes operating system load options for a specified operating system entry.

Syntax
BOOTCFG /rmsw [/s Computer [/u Domain\\User /p Password]] [/mm] [/bv] [/so] [/ng] /id OSEntryLineNum

Parameters
/mm Removes the /maxmem switch and its associated maximum memory value from the specified OSEntryLineNum. The /maxmem switch specifies the maximum amount of RAM that the operating system can use.
/bv Removes the /basevideo switch from the specified OSEntryLineNum. The /basevideo switch directs the operating system to use standard VGA mode for the installed video driver.
/so Removes the /sos switch from the specified OSEntryLineNum. The /sos switch directs the operating system to display device driver names while they are being loaded.
/ng Removes the /noguiboot switch from the specified OSEntryLineNum. The /noguiboot switch disables the Windows XP Professional progress bar that appears before the CTRL+ALT+DEL logon prompt.
Examples
BOOTCFG /rmsw /mm 64 /id 2
BOOTCFG /rmsw /so /id 3
BOOTCFG /rmsw /so /ng /s srvmain /u hiropln /id 2
BOOTCFG /rmsw /ng /id 2
BOOTCFG /rmsw /mm 96 /ng /s srvmain /u maindomhiropln /p p@ssW23 /id 2
BOOTCFG timeout
Changes the operating system time-out value.

Syntax
BOOTCFG /timeout TimeOutValue [/s Computer [/u Domain\\User /p Password]]

Parameters
TimeOutValue Specifies the timeout value in the [boot loader] section. The value is the number of seconds the user has to select an operating system from the boot loader screen before NTLDR loads the default. If the value is 0, then NTLDR immediately starts the default operating system without displaying the boot loader screen.
Examples
BOOTCFG /timeout 30
BOOTCFG /s srvmain /u maindomhiropln /p p@ssW23 /timeout 50
My bootcfg results
C:>bootcfg /Query
Boot Loader Settings
------------------–
timeout: 24
default: multi(0)disk(0)rdisk(0)partition(1)WINDOWS
Boot Entries
------------
Boot entry ID: 1
Friendly Name: "XP Pro Normal"
Path: multi(0)disk(0)rdisk(0)partition(1)WINDOWS
OS Load Options: /fastdetect /noexecute=optin /numproc=2
Boot entry ID: 2
Friendly Name: "XP Pro Safe Mode"
Path: multi(0)disk(0)rdisk(0)partition(1)WINDOWS
OS Load Options: /safeboot:minimal /sos /bootlog /noguiboot
Boot entry ID: 3
Friendly Name: "XP Pro Safe Mode with Networking"
Path: multi(0)disk(0)rdisk(0)partition(1)WINDOWS
OS Load Options: /safeboot:network /sos /bootlog /noguiboot
Boot entry ID: 4
Friendly Name: "XP Pro Safe Mode with Command Prompt"
Path: multi(0)disk(0)rdisk(0)partition(1)WINDOWS
OS Load Options: /safeboot:minimal(alternateshell) /sos /bootlog /noguiboot
Boot entry ID: 5
Friendly Name: "XP Pro Debugging Mode"
Path: multi(0)disk(0)rdisk(0)partition(1)WINDOWS
OS Load Options: /debug /sos /basevideo /noguiboot /bootlog
Boot entry ID: 6
Friendly Name: "Microsoft Windows Recovery Console"
Path: C:CMDCONSBOOTSECT.DAT
OS Load Options: /cmdcons
 
Status
Not open for further replies.