[Windows 7] Editing the boot loader (BCDEDIT)

General discussion about MMORPGs, Neocron, SXR, or anything else you feel like blabbing about.
Forum rules
Welcome to the Official SynergyXR Forums! You will have to register to post and if you're new here, please read our Welcome Post and Forum Rules.
Post Reply
User avatar
a4nic8er
1500+ Posts
Posts: 1527
Joined: Fri Dec 31, 2004 1:24 am
Xfire ID: a4nic8er
Neocron Characters: A-Four
Afk
Afornicater
BlackWilly
Lag
Oh Noes
Taxi
Utu
Fallen Earth Characters: Lara Craft (55 - Pistols/Tradeskiller)
Lag (55- Melee/Mutant)
Packet Loss (55 - Rifle)
Adol Fittler (31 - Mule)
Global Agenda Character: Afore_AdolFittler
Operating System: Win10 Pro 64
CPU: Intel Core i9 9900K
CPU Heatsink/Cooler: Cooler Master MasterLiquid ML360R
Motherboard: MSI MPG Z390 GAMING PRO CARBON
Memory (RAM): CORSAIR Vengeance RGB Pro 32GB DDR4
Video Card: GV-N2070AORUS X-8GC
Hard Drive: Samsung 850 EVO 120GB SATA3 SSD
Hard Drive (Secondary): Samsung 860 EVO 1TB SATA3 SSD
Monitor: Acer Predator XB271HUA
Secondary Monitor: BenQ XL2411T
Keyboard: Logitech G13
Mouse: LOGITECH G502 Proteus Core
Case: Cooler Master COSMOS S
Power Supply: Silverstone OP1000-E 1000W
Rig Accessory: D-Link DNS-343 NAS
Internet Connection: aDSL 10/1Mbps
Location: New Zealand
Contact:

[Windows 7] Editing the boot loader (BCDEDIT)

Post by a4nic8er »

Copied from my 2 year old posting DSLreports.com for all to reference (and so I can find it easier).

[BCDEDIT] ABOUT BCDEDIT - Boot Configuration Data Store Editor

The Bcdedit.exe command-line tool modifies the boot configuration data store.
The boot configuration data store contains boot configuration parameters and controls how the operating system is booted. These parameters were previously in the Boot.ini file (in BIOS-based operating systems) or in the nonvolatile RAM entries (in Extensible Firmware Interface-based operating systems). You can use Bcdedit.exe to add, delete, edit, and append entries in the boot
configuration data store.

For detailed command and option information, type: bcdedit.exe /? .
For example, to display detailed information about the /createstore command, type: bcdedit.exe /? /createstore
For an alphabetical list of topics in this help file, run "bcdedit /? TOPICS".

Commands that operate on a store
================================
/createstore Creates a new and empty boot configuration data store.
/export Exports the contents of the system store to a file. This file can be used later to restore the state of the system store.
/import Restores the state of the system store using a backup file created with the /export command.
/sysstore Sets the system store device (only affects EFI systems, does not persist across reboots, and is only used in cases where the system store device is ambiguous).

Commands that operate on entries in a store
===========================================
/copy Makes copies of entries in the store.
/create Creates new entries in the store.
/delete Deletes entries from the store.
/mirror Creates mirror of entries in the store.

Run bcdedit /? ID for information about identifiers used by these commands.

Commands that operate on entry options
======================================
/deletevalue Deletes entry options from the store.
/set Sets entry option values in the store.

Run bcdedit /? TYPES for a list of datatypes used by these commands.
Run bcdedit /? FORMATS for a list of valid data formats.

Commands that control output
============================
/enum Lists entries in the store.
/v Command-line option that displays entry identifiers in full, rather than using names for well-known identifiers.
Use /v by itself as a command to display entry identifiers in full for the ACTIVE type.

Running "bcdedit" by itself is equivalent to running "bcdedit /enum ACTIVE".

Commands that control the boot manager
======================================
/bootsequence Sets the one-time boot sequence for the boot manager.
/default Sets the default entry that the boot manager will use.
/displayorder Sets the order in which the boot manager displays the multiboot menu.
/timeout Sets the boot manager time-out value.
/toolsdisplayorder Sets the order in which the boot manager displays the tools menu.

Commands that control Emergency Management Services for a boot application
=================================================
/bootems Enables or disables Emergency Management Services for a boot application.
/ems Enables or disables Emergency Management Services for an operating system entry.
/emssettings Sets the global Emergency Management Services parameters.

Command that control debugging
==============================
/bootdebug Enables or disables boot debugging for a boot application.
/dbgsettings Sets the global debugger parameters.
/debug Enables or disables kernel debugging for an operating system entry.
/hypervisorsettings Sets the hypervisor parameters.
User avatar
a4nic8er
1500+ Posts
Posts: 1527
Joined: Fri Dec 31, 2004 1:24 am
Xfire ID: a4nic8er
Neocron Characters: A-Four
Afk
Afornicater
BlackWilly
Lag
Oh Noes
Taxi
Utu
Fallen Earth Characters: Lara Craft (55 - Pistols/Tradeskiller)
Lag (55- Melee/Mutant)
Packet Loss (55 - Rifle)
Adol Fittler (31 - Mule)
Global Agenda Character: Afore_AdolFittler
Operating System: Win10 Pro 64
CPU: Intel Core i9 9900K
CPU Heatsink/Cooler: Cooler Master MasterLiquid ML360R
Motherboard: MSI MPG Z390 GAMING PRO CARBON
Memory (RAM): CORSAIR Vengeance RGB Pro 32GB DDR4
Video Card: GV-N2070AORUS X-8GC
Hard Drive: Samsung 850 EVO 120GB SATA3 SSD
Hard Drive (Secondary): Samsung 860 EVO 1TB SATA3 SSD
Monitor: Acer Predator XB271HUA
Secondary Monitor: BenQ XL2411T
Keyboard: Logitech G13
Mouse: LOGITECH G502 Proteus Core
Case: Cooler Master COSMOS S
Power Supply: Silverstone OP1000-E 1000W
Rig Accessory: D-Link DNS-343 NAS
Internet Connection: aDSL 10/1Mbps
Location: New Zealand
Contact:

Re: [Windows 7] Editing the boot loader (BCDEDIT)

Post by a4nic8er »

[BCDEDIT] To use BCDEDIT - AT YOUR OWN RISK !

Start Menu > All Programs > Accessories > (right-click & "Run as administrator") Command prompt

You can use the /export command to create a backup file of the current system store contents.

For info on the /export command, type...

Code: Select all

bcdedit /? /export
Examples..

Code: Select all

bcdedit /export C:\BCDbak 
bcdedit /export C:\"BCD bak"
(if file name contains spaces, it must be enclosed in quotation marks.)

You can then use the /import command to restore the system store contents if any non-fatal errors are encountered.
Examples..

Code: Select all

bcdedit /import C:\"BCD bak"  
bcdedit /import C:\BCDbak /clean
User avatar
a4nic8er
1500+ Posts
Posts: 1527
Joined: Fri Dec 31, 2004 1:24 am
Xfire ID: a4nic8er
Neocron Characters: A-Four
Afk
Afornicater
BlackWilly
Lag
Oh Noes
Taxi
Utu
Fallen Earth Characters: Lara Craft (55 - Pistols/Tradeskiller)
Lag (55- Melee/Mutant)
Packet Loss (55 - Rifle)
Adol Fittler (31 - Mule)
Global Agenda Character: Afore_AdolFittler
Operating System: Win10 Pro 64
CPU: Intel Core i9 9900K
CPU Heatsink/Cooler: Cooler Master MasterLiquid ML360R
Motherboard: MSI MPG Z390 GAMING PRO CARBON
Memory (RAM): CORSAIR Vengeance RGB Pro 32GB DDR4
Video Card: GV-N2070AORUS X-8GC
Hard Drive: Samsung 850 EVO 120GB SATA3 SSD
Hard Drive (Secondary): Samsung 860 EVO 1TB SATA3 SSD
Monitor: Acer Predator XB271HUA
Secondary Monitor: BenQ XL2411T
Keyboard: Logitech G13
Mouse: LOGITECH G502 Proteus Core
Case: Cooler Master COSMOS S
Power Supply: Silverstone OP1000-E 1000W
Rig Accessory: D-Link DNS-343 NAS
Internet Connection: aDSL 10/1Mbps
Location: New Zealand
Contact:

Re: [Windows 7] Editing the boot loader (BCDEDIT)

Post by a4nic8er »

[BCDEDIT] To change OS names displayed during load

My dual-boot system has Windows 7 64bit and an earlier install of XPPro 64 bit. For a full description of entry identifiers, I type..

Code: Select all

bcdedit /enum /v
..and I get..
Windows Boot Manager
--------------------
identifier {9dea862c-5cdd-4e70-acc1-f32b344d4795}
device partition=\Device\HarddiskVolume1
description Windows Boot Manager
locale en-US
inherit {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
default {07cf7f58-e206-11dd-a0c8-bab28362099d}
resumeobject {07cf7f57-e206-11dd-a0c8-bab28362099d}
displayorder {466f5a88-0af2-4f76-9038-095b170dc21c}
{07cf7f58-e206-11dd-a0c8-bab28362099d}
toolsdisplayorder {b2721d73-1db4-4c62-bf78-c548a880142d}
timeout 30

Windows Legacy OS Loader
------------------------
identifier {466f5a88-0af2-4f76-9038-095b170dc21c}
device partition=\Device\HarddiskVolume1
path \ntldr
description Earlier Version of Windows

Windows Boot Loader
-------------------
identifier {07cf7f58-e206-11dd-a0c8-bab28362099d}
device partition=C:
path \Windows\system32\winload.exe
description Windows 7
locale en-US
inherit {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
recoverysequence {07cf7f59-e206-11dd-a0c8-bab28362099d}
recoveryenabled Yes
osdevice partition=C:
systemroot \Windows
resumeobject {07cf7f57-e206-11dd-a0c8-bab28362099d}
nx OptIn
For output showing names for well-known identifiers and to show what system is active (current), I just type..

Code: Select all

bcdedit
..and get..
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=\Device\HarddiskVolume1
description Windows Boot Manager
locale en-US
inherit {globalsettings}
default {current}
resumeobject {07cf7f57-e206-11dd-a0c8-bab28362099d}
displayorder {ntldr}
{current}
toolsdisplayorder {memdiag}
timeout 30

Windows Legacy OS Loader
------------------------
identifier {ntldr}
device partition=\Device\HarddiskVolume1
path \ntldr
description Earlier Version of Windows

Windows Boot Loader
-------------------
identifier {current}
device partition=C:
path \Windows\system32\winload.exe
description Windows 7
locale en-US
inherit {bootloadersettings}
recoverysequence {07cf7f59-e206-11dd-a0c8-bab28362099d}
recoveryenabled Yes
osdevice partition=C:
systemroot \Windows
resumeobject {07cf7f57-e206-11dd-a0c8-bab28362099d}
nx OptIn
I want to change the "Windows 7" description to "Windows 7 Ultimate 64" so I type..

Code: Select all

bcdedit /set {current} description "Windows 7 Ultimate 64"
.. and voila
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=\Device\HarddiskVolume1
description Windows Boot Manager
locale en-US
inherit {globalsettings}
default {current}
resumeobject {07cf7f57-e206-11dd-a0c8-bab28362099d}
displayorder {ntldr}
{current}
toolsdisplayorder {memdiag}
timeout 30

Windows Legacy OS Loader
------------------------
identifier {ntldr}
device partition=\Device\HarddiskVolume1
path \ntldr
description Earlier Version of Windows

Windows Boot Loader
-------------------
identifier {current}
device partition=C:
path \Windows\system32\winload.exe
description Windows 7 Ultimate 64
locale en-US
inherit {bootloadersettings}
recoverysequence {07cf7f59-e206-11dd-a0c8-bab28362099d}
recoveryenabled Yes
osdevice partition=C:
systemroot \Windows
resumeobject {07cf7f57-e206-11dd-a0c8-bab28362099d}
nx OptIn

If I wanted to alter the XP boot description "Earlier Version of Windows" I could type...

Code: Select all

bcdedit /set {ntldr} description "XP Professional 64"
User avatar
a4nic8er
1500+ Posts
Posts: 1527
Joined: Fri Dec 31, 2004 1:24 am
Xfire ID: a4nic8er
Neocron Characters: A-Four
Afk
Afornicater
BlackWilly
Lag
Oh Noes
Taxi
Utu
Fallen Earth Characters: Lara Craft (55 - Pistols/Tradeskiller)
Lag (55- Melee/Mutant)
Packet Loss (55 - Rifle)
Adol Fittler (31 - Mule)
Global Agenda Character: Afore_AdolFittler
Operating System: Win10 Pro 64
CPU: Intel Core i9 9900K
CPU Heatsink/Cooler: Cooler Master MasterLiquid ML360R
Motherboard: MSI MPG Z390 GAMING PRO CARBON
Memory (RAM): CORSAIR Vengeance RGB Pro 32GB DDR4
Video Card: GV-N2070AORUS X-8GC
Hard Drive: Samsung 850 EVO 120GB SATA3 SSD
Hard Drive (Secondary): Samsung 860 EVO 1TB SATA3 SSD
Monitor: Acer Predator XB271HUA
Secondary Monitor: BenQ XL2411T
Keyboard: Logitech G13
Mouse: LOGITECH G502 Proteus Core
Case: Cooler Master COSMOS S
Power Supply: Silverstone OP1000-E 1000W
Rig Accessory: D-Link DNS-343 NAS
Internet Connection: aDSL 10/1Mbps
Location: New Zealand
Contact:

Re: [Windows 7] Editing the boot loader (BCDEDIT)

Post by a4nic8er »

[BCDEDIT] To change the default Operating System

Windows 7 always makes itself the default Operating system during installation. If I wanted to change it so that XP is the default, I would type...

Code: Select all

bcdedit /default {ntldr}
Post Reply