Questions tagged [bcdstore]
10 questions
15
votes
1 answer
Cannot read BCDStore info on Windows 2012 Server using WMI
We are using the following function to get the number of processors specified by the current boot configuration. This number is used purely for logging.
The function below works fine on XP, Vista, 7, 2003 and 2008. It, however, fails on the Windows…

gabr
- 26,580
- 9
- 75
- 141
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
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
2 answers
Accessing BcdStore from Delphi
I'm trying to convert this code fragment into Delphi and I got stuck on the for each objWBL in colObjects.
if not objBcdStore.EnumerateObjects( &h10200003, colObjects ) then
WScript.Echo "ERROR objBcdStore.EnumerateObjects( &h10200003 )…

gabr
- 26,580
- 9
- 75
- 141
1
vote
1 answer
Use C# BCD WMI Provider to SafeBoot Windows
I have scoured the web looking for solutions on how to SafeBoot into Windows using only C#. Since Vista and above, safe booting is controlled using BCD. Ofcourse you could use the commandline tool "bcdedit":
bcdedit /set {current} safeboot…

Vippy
- 1,356
- 3
- 20
- 30
1
vote
1 answer
Unable to set DeviceElements for a Windows BCD with WMI
I am trying to programatically create a Windows 7 BCD Store using VBScript. Building the store itself, the BootMgr, and the OS Loader seems to go swimmingly as does populating most of the elements for each of the objects. Where I run into trouble is…

msumbufu
- 21
- 4
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
1 answer
Failure while accessing Bcd using wmic
I am getting an error when I try to access the EnumerateObjects method of the BcdStore class using wmic.
I initially ran the GetSystemDisk method to see that I can access the BcdStore (see below). This worked fine.
______________ cmd window output…

Kashif Memon
- 1
- 1
-1
votes
1 answer
How to get user mode total virtual memory?
Asking for Win 7/Win 10 (BIOS/EFI). Ive been researching this and havent been able to find a way, heres the story:
In a program I am using bcdedit /set IncreaseUserVa 3872 to set the user-mode virtual address space to 3872MB, then I restart.
For a…

Alvaromon
- 190
- 2
- 16