Questions tagged [bcdedit]

BCDEdit is a command-line tool for managing BCD stores. It can be used for a variety of purposes, including creating new stores, modifying existing stores, adding boot menu options, and so on.

From its description page:

Boot Configuration Data (BCD) files provide a store that is used to describe boot applications and boot application settings. The objects and elements in the store effectively replace Boot.ini.

BCDEdit is a command-line tool for managing BCD stores. It can be used for a variety of purposes, including creating new stores, modifying existing stores, adding boot menu options, and so on. BCDEdit serves essentially the same purpose as Bootcfg.exe on earlier versions of Windows, but with two major improvements:

  • BCDEdit exposes a wider range of boot options than Bootcfg.exe.
  • BCDEdit has improved scripting support.
39 questions
13
votes
4 answers

bcdedit /copy syntax not correct

I'm trying to run Oracle Virtual Box on my work laptop. I'm getting an error saying that it can't run because I'm running Hyper-v. I'm trying to follow the instructions at Scott Hanselman's Blog, which have worked for me in the past on my personal…
Eric
  • 2,861
  • 6
  • 28
  • 59
7
votes
1 answer

BCD entry for winpe only launches Preparing Automatic Repair

I'm attempting to reboot a computer into a flash drive media containing Windows PE, but every time it only launches Preparing Automatic Repair. Here is my powershell that generates the new bcd entry: $drive = (get-location).Drive.Name + ":" $output…
GrumpyCrouton
  • 8,486
  • 7
  • 32
  • 71
6
votes
1 answer

BCDEdit error, The parameter is incorrect

I'm trying to add my SSD to the boot menu. I followed the instructions provided by Microsoft. But I keep getting the same error. This command gives me the error: bcdedit /copy {current} /d "mySSD" Then I ran bcdedit /v to see the identifier's GUID.…
Bizhan
  • 16,157
  • 9
  • 63
  • 101
6
votes
5 answers

Scripting with bcdedit

After rebuilding a HDD using ImageX and a WIM, the BCD sometimes gets corrupted. I therefor need to rebuid the BCD from a script running unattended in a command prompt. The below code does the job, when entered manually. I need help to automate it…
5
votes
1 answer

Adding UEFI firmware boot entry using bcdedit

How to add a new UEFI firmware boot menu entry(in NVRAM) using bcdedit. For e.g. I tried the following steps but boot entry is not getting added. bcdedit /create /d "LinuxLoader" /application osloader this will return a new guid (say…
Raghu
  • 69
  • 1
  • 1
  • 5
5
votes
5 answers

bcdedit, bcdstore and powershell

so i can write bcd commands in a powershell script as if i were in a cmd prompt, for example: bcdedit /default '{current}' however i need a script that does this: bcdedit /default '{current}' bcdedit /set '{otherboot}' description "my…
dwarf
  • 445
  • 2
  • 9
  • 23
4
votes
4 answers

Windows 7: What is the difference between turning testsigning on and disabling integrity check

To disable KMCS in Windows 7 64 bit, What is the difference between bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS bcdedit.exe -set TESTSIGNING ON Are both necessary or either one to load unsigned drivers? Thanks for your help - Daniel
Daniel Yaacov
  • 188
  • 1
  • 8
3
votes
2 answers

Access the Windows 7 Boot Configuration Data using C#

I need to be able to access the identifier GUID of the current running installation of Windows from the Boot Configuration Data Store using c#. It can be returned from the command line running: bcdedit /enum {current} /v The problem I have is that…
L-Williams
  • 146
  • 1
  • 9
3
votes
1 answer

bcdedit error: "The parameter is incorrect"

I'm trying to set up for kernel debugging, so I'm using the command: bcdedit /set debug on Unfortunately, I get the response The parameter is incorrect. a) does anyone know how to debug that error? b) if not, can someone point me to an article on…
2
votes
3 answers

Getting BCD entries with .NET (PowerShell or .NET)

I'm creating an application that analyzes the entries in the Boot Configuration Data (BCD). I've tried with PowerShell, but it seems that it doesn't provide any cmdlets to deal with it. So, I've fallen back to .NET, espically C#. I would like to…
SuperJMN
  • 13,110
  • 16
  • 86
  • 185
1
vote
1 answer

windows 10 check if debugging mode is enabled?

Is there any way on Windows 10 Enterprise to check if debugging mode is enabled, via registry or any commands? I tried to research on Google, but I can't find anthing on it.
Dhruv
  • 173
  • 1
  • 11
1
vote
1 answer

passing guid and path to bcdedit /set as a variable

I need to run these 4 commands to boot a new image into a device: bcdedit /copy {current} /d "Describe" bcdedit /set {guid} osdevice vhd=somepath bcdedit /set {guid} device vhd=somepath bcdedit /default {$guid} To automate my script, I want to…
1
vote
2 answers

Create EFI-stub boot entry from Windows

I use Linux kerne EFI stub to boot. Now I have run into an emergency, because I have lost my UEFI boot entry and I am stuck with Windows. Is there any possibility to create UEFI NVRAM boot entry for Linux kernel? I have managed to create it, but…
Míla Mrvík
  • 525
  • 2
  • 15
1
vote
3 answers

system("bcdedit /set safeboot") does not set windows to safeboot

Here is the c++ code with command, command for run windows in safeboot with network mode and restart, This code run only in 32 bit operating system but in 64 bit only restart will happen but not in safeboot mode. [NOTE] : I run application in…
Krish
  • 376
  • 3
  • 14
1
vote
1 answer

Unable to edit with bcdedit filelds in powershell - cmd.exe command line fails

Why can't I edit the description field using bcdedit in PowerShell? For example, in cmd.exe the following command: bcdedit /set {GUID} description "OS2" completes successfully, changing the description field for the specified GUID, but when I do…
knile
  • 318
  • 3
  • 15
1
2 3