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
1
vote
2 answers

BCD Edit Export fails when user not logged on and run via SCCM as System account in Powershell

I am having an issue where running a powershell script as the system account via SCCM when trying to deploy a VHD to a system. The script tries to perform a bcdedit /export - however when I run it as myself or use psexec /i /s cmd and then run the…
Random206
  • 757
  • 6
  • 19
1
vote
2 answers

batch file FOR loop weird output with "bcdedit"

I am trying to understand the FOR loop in batch files. This code: FOR /F %%V IN ('bcdedit') DO @echo %%V pause exit Gives this output: C:\Users\me\Desktop>FOR /F %V IN ('bcdedit') DO @echo %V The Access C:\Users\me\Desktop>pause Press any key to…
aquagremlin
  • 3,515
  • 2
  • 29
  • 51
1
vote
1 answer

Run a process RunOnce in safe mode?

I need to run a process one time after a reboot in safe mode, the process is this: bcdedit.exe /import "%WINDIR%\Restore BootLoader Settings.bcd" I've tried to use the RunOnce key but I've noticed that keys will not run under a Safe Mode boot so...…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
1
vote
1 answer

Programmatically edit the BCD store on Windows 8?

On Windows Vista+ the BCD boot data is stored in the registry under HKEY_LOCAL_MACHINE\BCD00000000. The BCDEDIT command line tool just presents that data in a readable fashion. So, theoretically, any user-programmed application that runs as an…
Govind Parmar
  • 20,656
  • 7
  • 53
  • 85
1
vote
1 answer

Create boot entry in bcdedit for Windows 8 to go

WI created a "Windows 8 to go" drive and attached it (to a SATA port) on to a windows 7 laptop (instead of CD drive). I'd like to modify the Windows 7 boot configuration (bcdedit) to boot Windows 8 from the another drive. I tried to create a new…
Pho3nixHun
  • 820
  • 2
  • 11
  • 24
0
votes
2 answers

How can you define a bcdedit value from a variable by batch (tokens)?

This command shows in an admin CMD how many seconds the boot manager waits for the standard operating system to boot automatically: bcdedit /enum | find "timeout" Do I want to press the output value in seconds into an environment variable in batch?…
0
votes
1 answer

Cmd line bcdedit parse identifier

Hello I run command bcdedit /enum all and I get multiple results. So I just need identifier which description has "EFI network". Results seems below. I just need {xxx-aaaa} . how can I get it? Firmware Application (101fffff) identifier …
astatin
  • 11
  • 2
0
votes
1 answer

change boot order using command line

I have Windows installed Surface Pro 6 and I am trying to change the boot order to boot first from USB and not from Windows without getting into the BIOS. Windows 10 is in C: Disk on key (WinPE Bootable USB drive) is on E: How can I switch between…
user1902346
  • 799
  • 1
  • 12
  • 21
0
votes
1 answer

Dual Boot Windows-Android on PC: How to switch OS programmatically?

In Windows, are there some command lines that would make the machine understand that Android should be the next boot (for one boot only -so once I reboot from Android I fall back into Windows)? I am working on a notebook ASUS X200CA, UEFI-based…
ssx
  • 184
  • 1
  • 4
  • 13
0
votes
2 answers

Powershell & bcdedit: Identify recovery partitions

I am trying to script the elimination/backup of the OEM partition (which just brings back the system to an outdated version of no practical use). On many systems, using DISKPART list partition returns more recovery type partitions: one is the…
antonio
  • 10,629
  • 13
  • 68
  • 136
0
votes
3 answers

how set value of current operating system to default operating system -by c# code or by script

how set value of current operating system to default operating system -by c# code or by script. manually : control panel -> System -> change system -> advanced ->setting -> (startup and recovery) checked the default operating system. I do it by…
sari k
  • 2,051
  • 6
  • 28
  • 34
0
votes
0 answers

Attaching Xen PV Drivers to Windows Boot Manager

On a vm I have two drives each with Windows 10. As this is inside of a XEN HVM instance, the Windows Boot Manager can only launch Windows on the first drive (I'd like to be able to launch Windows on the 2nd drive). Once the system boots on Drive 1,…
Larry
  • 397
  • 3
  • 10
0
votes
1 answer

Inno Setup - bcdedit is not working

I need to submit the command: bcdedit /set {default} recoveryenabled No but it's not working with Inno Setup. I have tried as below: [Setup] PrivilegesRequired=admin [Run] Filename: "{cmd}"; Parameters: "/c ""bcdedit.exe /set recoveryenabled…
user285594
0
votes
1 answer

Powershell cant understand "bcdedit"

When I try to run in CMD bcdedit command is working. When I try to run it in PowerShell I get this: The term 'bcdedit' is not recognized as the name of a cmdlet But in manuals and tutorials bcdedit working fine in PowerShell. Why my PowerShell did…
Artur Tychina
  • 105
  • 2
  • 8
0
votes
1 answer

Disabling BCD testsigning option using registry

My code should disable testsigning BCD option using Windows registry. The same as command line bcdedit -set testsigning off. I can't do shellexecute with cmd. I found one Testsigning reference in registry, in…
Jury
  • 1,227
  • 3
  • 17
  • 30